Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMI270 FIFO acc gyr aux frame count not match

    BMI270 FIFO acc gyr aux frame count not match

    HMK
    New Poster

    Hi,

    I try the code from below link to use fifo watermark header mode.

    https://github.com/boschsensortec/BMI270-Sensor-API/blob/master/bmi270_examples/aux_fifo_watermark_h...

    I got  data.  My watermark level is 650. I expect got around 30 frame for each sensor, and each sensor's frame count should be equal. But actually frame count I got is like below:

    HMK_0-1698668751514.png

    The acc frame count is less than gyro and aux.

    Could please help?

    Thanks,

    Yang

     

    4 REPLIES 4

    BSTRobin
    Community Moderator
    Community Moderator

    Hi HMK,

    You can refer to attached example code. If you used application board 3.0+BMI270 shuttle board 3.0 and run the code in COINES environement, you should run the code in RAM or Flash.
    mingw32-make LOCATION=RAM TARGET=MCU_APP30 download
    mingw32-make LOCATION=FLASH TARGET=MCU_APP30 download

    2023-11-01_14h18_50.png

    Hi,

    We don't have COINES board and the  environement.  It seems we got the dummy bytes. How to avoid this?

    Thanks,

    Yang

    We also tried the headless mode. Got same result. 

    The return value of below code is  BMI2_W_DUMMY_BYTE.

    rslt = check_dummy_frame(BMI2_FIFO_HEADERLESS_DUMMY_ACC, &data_index, skip_length, fifo);
     
    Thanks.

    BSTRobin
    Community Moderator
    Community Moderator

    Hi HMK,

    You can check the length of your FIFO and whether the data read is an integer multiple of the data per frame.

    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