cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DSL Fifo Data Set Corrupted

OEl F
Associate

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,

1 REPLY 1
Miroslav BATEK
ST Employee

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.