FIFO Corruption on LSM6DSM
There appears to be a hardware bug on the LSM6DSM where if a sample is acquired while reading from the FIFO, then the pattern # becomes incorrect. I can consistently replicate this issue by reading at random intervals. Additionally, data on the FIFO may be corrupted.
I'm taking my measurements while the custom PCB is sitting still, so consecutive samples should not vary significantly.
I have attached a hardware I2C logger to confirm the data on the I2C bus, see attached spreadsheet with annotations.
I have also attached my .c file showing the configuration settings that are used.
FIFO continuous mode at 26hz, stop on threshold full, block data update = 1, interface increment = 1.
Is there a workaround for this issue? Different settings that I need to use?
