Bosch Sensortec Community

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

    BMI270 FIFO for accelerometer in low power mode

    BMI270 FIFO for accelerometer in low power mode

    jshih
    New Poster

    Hi,

    I'm using the accelerometer in BMI270, used FIFO watermark as the interrupt to read the sensor data out by every certain time, everything was working great while in the normal mode, but data became corrupted in FIFO while in the low power mode by set "acc.filter_perf=0".

    I read the datasheet and saw the description in section "4.7.7 FIFO in Low Power Mode" which describes "The data storage into the FIFO is identical to the normal and performance mode", so just want to double check with you to confirm it's correct or something else if I didn't configure right.

    Thanks, James S.

    4 REPLIES 4

    Minhwan
    Community Moderator
    Community Moderator

    Hi jshih, 

     

    Are you using our BMI270 API? 

    https://github.com/BoschSensortec/BMI270-Sensor-API

    There are FIFO examples like below. 

    https://github.com/BoschSensortec/BMI270-Sensor-API/tree/master/bmi270_examples/fifo_full_header_mod...

    And, you need to set 0x03 for 0x7C register. 

    Minhwan_0-1666722981939.png

     

    Please let me know if you have any questions. 

    Thank you. 

    Hi,

    Yes, I'm using the BMI270 API from the Github.

    In accel normal mode, I don't have any issue to use FIFO, it works properly.

    In accel low power mode, I have the issue to use FIFO, looks the data not been stored into FIFO.

    Again, my questoin or the thing I would like to clarify is,

    Can I use FIFO when use Accel in low power mode?

    Because the datasheet mentioned "The data storage into the FIFO is identical to the normal and performance mode", so would like to double confirm what I observed is correct.

    Minhwan
    Community Moderator
    Community Moderator

    Hi Jshih, 

     

    Yes, as I said, you need to enable FIFO self wake up. 

    To do so, you need to enable using below function. 

    bmi2_set_fifo_self_wake_up(BMI2_ENABLE, &dev) 

    You can use above function end of initialization part. 

    Please let me know if you still have issues. 

    Thank you. 

    Hi,

    Thanks, I can see FIFO works properly after enabled the FIFO self wake-up.

    But one more question is,

    FIFO data is good when read by every interrupt (by watermark level), but if now I read FIFO data before interrupt then I could see the FIFO data corrupted after read.

    For example: I set ODR to 25Hz and interrupt by watermark level as read 25 set of data by every seconds.

    • It's working properly when read FIFO data by every interrupt.
    • Data corrupted if manual read FIFO before the interrupt.

    Does that means I may need to re-enable the FIFO self wakeup if read data by none interrupt trigger?

    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