Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMG250 not communicating

    BMG250 not communicating

    Libero
    New Poster

    I have one of your BMG250 gyros on a PCB with other devices, all of which are connected via an SPI bus. I can communicate with all the other devices and the MISO line changes state as expected. When I try to read data from the BMG250 all I get is 0xFF irrespective of which address I am trying to access. The CS is not clashing with the CS of other devices and powr is applied. As specified on your datasheet, I start off with a read of address 0x7F, and even toggled the CS line to ensure the device switches to SPI mode. The signals into the device appear to be correct with all the timings well within you specifications. I have two different devices on two different boards and they both do the same thing. As a test, I am trying to read the chip ID register. It is as though the device is not powered. Have I missed something obvious? Any suggestions?

    4 REPLIES 4

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    Thanks for your inquiry. BMG250 SPI interface should work fine. You may purchase a BMG250 shuttle board from https://www.mouser.com/ProductDetail/Bosch-Sensortec/BMG250-Shuttle-Board?qs=sGAEpiMZZMuqBwn8WqcFUj9... and then connect your MCU to the shuttle board through a breadboard to test the SPI communication.

    BMG250 SPI interface supports mode 0 and mode 3. At the beginning, you can use your MCU GPIO pin to set CSB pin from high to low, and then from low to high. BMG250 will swtich from default I2C interface to SPI interface automatically. Then when you want to read BMG250 chip ID at register 0x00, you should write value of 0x80 to SPI address for reading after you set CSB pin to low. Then you write value of 0xFF to SPI to issue another 8 pulses of clock. You should get the value of 0xD5 back from BMG250. Then you set CSB pin to high to finish this SPI single byte reading transaction.

    Hope it helps. Thanks.

    Thank-you for your reply.  I am already doing all you suggested, however there is no communication from the device.  Please see attached file.

    FAE_CA1
    Community Moderator
    Community Moderator

    Hi,

    I don't see your attached file. Could you please let us know your email address so that we can support you offline?

    Thanks.

    Vincent
    Community Moderator
    Community Moderator

    Sorry, there is no attachment found in your post.

    Please share your schematic around BMG250 and also the voltage level you measured on sensor VDD and VDDIO pin on your board. 

    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