2022-07-13 11:24 AM
I'm working with lsm6dso for activity monitoring project. I want to record the acc and gyro data in the fifo and trigger an interrupt when the number of samples in fifo are more than the configured watermark. I already achieved to get the gyro data in the fifo and trigger the interrupt when the number of samples equals the watermark.
My problem is that I only get gyroscope data and no acc data. Do I have to write to a special register in order to enable the acc? I apreciate any help regarding the topic how to get acc running in fifo mode.
Best regards
2022-07-22 08:15 AM
Hi @ADvor.2 ,
did you correctly configured both the ODRs of the axl and the gyro?
You might also compare your code with the example on Github --> lsm6dso_fifo.c
-Eleon
2022-07-22 10:38 AM
Another thing to check is that the Batching Data Rate in FIFO_CTRL3 is set for XL.
2022-07-25 06:27 AM
Yes, I already checked the fifo example in fifo. The code I'm using is based on it and the register are setted as in the example
2022-07-25 06:29 AM
Setting or not setting the batching data rate in fifo_ctr3 didnt affect at all.