Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMI270 Initialization with FIFO or OIS

    BMI270 Initialization with FIFO or OIS

    moonbear429
    New Poster

    Since I tried to get gyro and accel data from BMI data, I failed because of the init error.

    1. I could get a chip ID 0x24.

    2. After downloading a config file into the board, we need to check 0x21(init_status)

    3. I read 0x21 data after downloading config, 0x60 comes out.

    moonbear429_0-1711524602057.png

    4. As seen in datasheet, 0x60 means "axes_remap error" & "odr_50hz_error"

    5. I tried to handle registers, but every modification didn't really make any significant effect to error.

    6. Since I use STM32L4, I'm using STM32CubeIDE.

    7. I already saw Bosch STM32 code for BMI270, but the goal of my project is to implement every sensor without OS, so the code from the company is not for my project.

    8. I thought that downloading config file is the problem.

    9. I gave up with the normal mode, and decided to start with other aspects : OIS & FIFO 

     

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    Question

    1. Should I need to control the registers about "axes_remap" and "ODR" before downloading the config file in the normal mode?

    2. Should OIS also go through the initialization process on the host? If so, I could not use OIS.

    3. I tried to implement FIFO because it has different config file with normal mode. But here's the thing.

    Can you explain some initialization process using FIFO? There seems to be no exact description about initializing FIFO in the datasheet.

     

    Best regards,

     

     

    1 REPLY 1

    BSTRobin
    Community Moderator
    Community Moderator

    Hi moonbear429,

    1.Axis remapping is usually executed after loading the BMI270 firmware, as shown in example https://github.com/boschsensortec/BMI270_SensorAPI/blob/master/bmi270_examples/axis_remap/axis_remap.... Acc and gyro default to setting ODR values, please refer to the description of registers 0x40 and 0x42 for details. Of course, you can also set the ODR you need, which is set after the firmware is loaded.
    2. If you need to use OIS, you need to first confirm whether your hardware is designed according to the OIS schematic in the BMI270 data sheet? OIS can be configured after firmware loading is completed, without affecting the firmware loading itself.

    BMI270 OIS diagram.png
    3. Github has examples of using FIFO, you can directly refer to them.
    https://github.com/boschsensortec/BMI270_SensorAPI/tree/master/bmi270_examples

    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