04-11-2022 10:22 PM - edited 04-11-2022 11:10 PM
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?
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.
04-12-2022 10:36 AM