Skip to main content
Visitor II
September 3, 2018
Question

LSM6DSL Fifo Data Set Corrupted

  • September 3, 2018
  • 1 reply
  • 999 views

Hello,

I am using the LSM6DSL in FIFO Continuous Mode. Fifo ODR is equal to the Accelerometer and Gyroscope ODRs (no decimation configured).

Data are retrieved from fifo after the FIFO_FULL interrupt is triggered.

 I have a problem that appears after few minutes of functioning. The sensor is not moving so the data sets from fifo remains the same.

The problem is that one fifo data set is sometimes corrupted after few minutes from running the application (the sensor is motionless) => all 3 axes for gyroscope and accelerometer have corrupted values.                                                                                                                                                                                                                                                     

Is there any reason why fifo data can sometimes be corrupted?

Thanks in advance,

    This topic has been closed for replies.

    1 reply

    ST Employee
    September 3, 2018

    Are you using data pattern when you read the data from FIFO?

    Please that the FIFO_STATUS3/4 registers (FIFO pattern) stop updating once the FIFO has overrun.

    I think it would be be better to set a FIFO watermark and read the data before the FIFO is full.