Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMI270 - Unable to enable DRDY interrupt

    BMI270 - Unable to enable DRDY interrupt

    bront
    Member

    I'm using the BMI270 on a custom board featuring an STM32 MCU host. The connection is 4 wire SPI with both of the INT(1/2) lines connected to the host as well. I've based my software off of the accel_gyro example (https://github.com/BoschSensortec/BMI270-Sensor-API/tree/master/bmi270_examples/accel_gyro). I'm attempting to enable both the accelerometer and gyroscope and map the DRDY interrupt for either to the INT1 line. The initialiation works as expected, however, the interrupt is never produced. Upon deep diving with a logic analyzer and reading out the writtten values, it appears I'm unable to write the INT1_IO_CTRL (0x53) through INT_LATCH (0x55). Am I missing something or is there an errata?

    Capture.PNG

    Update: This only occurs if I call the bmi2_set_int_pin_config function which does a burst write of the three registers (INT1_IO_CTRL, INT2_IO_CTRL, LATCH_CTRL). If I write them manuall one at a time everything operates correctly. 

    1 REPLY 1

    BSTRobin
    Community Moderator
    Community Moderator

    Hi bront,

    You could refer attached exmaple code which works well on STM32F401.BMI270 DRDY INT.png

    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