Bosch Sensortec Community

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

    BMI088 accelerometer not working

    BMI088 accelerometer not working

    UberMan
    New Poster

    Hello and happy new year.

     

    Here is my new year problem.

    I have made a custom board with an STM32F103C8T6 and a Bosch BMI088 connected using SPI. The board works and I just finished writing my SPI driver.

    The problem is that when I read the BMI accelerometer chip ID, it sends 0xFF then only 0x00 instead of 0x1E. On the other hand, the gyroscope always gives me the right value 0x0F.

    I know that the first value has to be wrong as the accelerometer start in I2C mode at startup and has to feel something ( like dummy read ) on its chip select pin to get in SPI mode. For more infos, here is my initialisation method:

    1 - dummy read to set accelerometer in SPI mode

    2 - Power up by writing 0x4 on PWR_CTRL register and wait 1ms

    3 - Active mode by writing 0x0 on PWR_CONF register and wait 5 ms instead of 450 microseconds

    5 - Check CHIP_ID ( 0XFF instead of 0x1E )

    Know that I readd that register 100 times for the gyroscope and accelerometer. The gyro is always right, the accelerometer give 0xFF then just reads 0x00.

    Can any of you tell me if my initialisation sequence is right and why is the accelerometer gives wrong chip ID. My goal is just to read data from the IMU and apply some filters.

    Thank you for reading me,

    P.S:

    I mask the write register address with & 0x7F

    I mask the read register address with | 0x80

    2 REPLIES 2

    Minhwan
    Community Moderator
    Community Moderator

    Hi @UberMan , 

     

    Do you follow our hardware setting for each interface? (DS section 6)

    https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmi088-ds001.pdf

     

    Minhwan_0-1704405091423.png

    Thank you. 

    Thank you,

    The problem is that I did a mistake connecting the accelerometer data line. Connected it to MISO instead T_T

    Thank you again, I will redesign a board, this time with a BMI270 ( for €€€ reasons ).

    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