LSM6DS3 Data Ready Interrupt not triggering
Hi everyone,
I am working on a project using the SensiBLE module. It includes an STM32L476RG microcontroller and an LSM6DS3 IMU sensor. I am using I2C for communication between the two.
I am trying to enable the accelerometer data-ready interrupt on INT1 using the following setup:
CTRL1XL ODR = 104Hz, FS = 2G
CTRL3_C BDU = 1, IF_INC = 1
CTRL4_C INT2_on_INT1 = 1 and SLEEP_G=1
CTRL6_C XL_HM_MODE = 1
MASTER_CONFIG DRDY_ON_INT1 = 1
INT1CTRL DRDY_XL = 1
However, the interrupt does not seem to trigger. To confirm that I would use an oscilloscope, however, the SensiBLE module is compact and I can't probe the MCU pins. However, as a test, if I replace the EXTI pin from the IMU INT1 pin with the SensiBLE button EXTI input pin and leave the I2C functions to retrieve accelerometer data from the IMU in the callback and cplt functions, it works successfully.
What is missing in the IMU configuration to fully enable the data-ready interrupt? Should I do it on INT2?
Thanks,
Rob
