2024-06-27 3:02 PM - edited 2024-06-28 9:45 AM
I have an application using the XL function, it works fine, no issues.
Now I need to read the gyroscope output data.
After I finish configuring the registers:
CTRL9_XL 01
INT1_CTRL 03
INT2_CTRL 06
CTRL1_XL 30
CTRL2_G 32
CTRL3_C 04
CTRL6_C 80
CTRL8_XL 00
MD1_CFG 02
MD2_CFG 02
CTRL9_XL 01
I get the 1st interuption. I read the status register and both GDA and XLDA are set.
Then I read XL data, followed by gyro data.
So far so good. My problem is that I keep getting interrupts for XL but reading the status register, GDA remains 0.
I tried to read gyro output but it never changes.
Is there something I'm missing?
2024-06-27 3:04 PM
Additional note: I never get INT2, only INT1.
I use the I2C interface
2024-07-10 6:26 AM
Hi @Claude ,
Can you try to implement our official PID examples and let me know if you solve? So that you can exclude some errors in the code.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.