Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 
    SOLVED

    BMI270 : how to read config file over SPI

    BMI270 : how to read config file over SPI

    Hugh
    New Poster

    HI,

    I'm planning to revise write_config_file() of "https://github.com/BoschSensortec/BMI270-Sensor-API, v2.63.1" as follows:

    bmi2_set_adv_power_save(BMI2_DISABLE, dev);
    set_config_load(BMI2_DISABLE, dev);
    loop
    upload_file
    read it back
    compare them and write again if different
    set_config_load(BMI2_ENABLE, dev);
    dev->delay_us(150000, dev->intf_ptr);
    bmi2_set_adv_power_save(BMI2_ENABLE, dev);

     It is because I'm getting BMI2_E_CONFIG_LOAD and I don't know how to solve it. When I checked the SPI packets with logic analyzer, there was no problem.

    Would you let me know how to read the config file back over SPI, please?

    Is is a good approach?

    Thanks,

    Hugh

    4 REPLIES 4

    Minhwan
    Community Moderator
    Community Moderator

    Hello Hugh

     

    Can you upload logic analyzer log and BMI270 source code here? 

    In case of log file, if you can upload as excel file, it would be better. 

    Thanks,  

    Hi Minhwan,

    There is another topic titled "[Question] BMI270 : BMI2_E_CONFIG_LOAD" where I described the source code and excel file.

    Thanks,

    Hugh

    Minhwan
    Community Moderator
    Community Moderator

    Hello Hugh, 

     

    I think your question could be enough in [Question] BMI270 : BMI2_E_CONFIG_LOAD. 

    Can I close this topic? I will check "[Question] BMI270 : BMI2_E_CONFIG_LOAD"

    Thanks, 

    Hi Minhwan,

    I thought that "read back and rewrite" is a good idea to solve my problem.

    If there is no way to "read back and rewrite", I'll go back to my original initialization problem as you recommend.

    Yes, you can close this topic.

    Thanks,

    Hugh

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist