LIS3DH: FIFO only retrieved once
Hello,
actually I am want to read data from fifo of the lis3dh sensor. I follow the datasheet and application note:
write 00000000 in TEMP_CRG_REG
write 00100111 in CTRL_REG1
write 10001000 in CTRL_REG4
write 01011110 in FIFO_CTRL_REG
write 10000000 in CTRL_REG5
clear fifo in while loop until FIFO_SRC_REG&0x20 == 0 (check for empty flag)
write 01011110 in FIFO_CTRL_REG
wait until watermark flag is activated (i.e. FIFO_SCR_REG&0x80==0)
read values since empty flag stays 0 (i.e. FIFO_SRC_REG&0x20==0)
Unfortunately it works exactly once. Than the watermark will never be reached again (I was waiting appr. 1h). Also there seems to be no change at the FSS bits of the FIFO_SCR_REG. Has anybody a hint for me what can be the root cause and how to overcome that issue? Thanks a lot.
Kind regards,
Philipp
