03-03-2020 08:23 AM
Hi
I'm working on a driver fro the BMA253 on our WEC7 base HW (i'm using SPI as interface at 5MBit/s).
I'm using the FIFO in STREAM mode. Unfortunatly i don't have an interrupt, so i simply periodical read the number of samples from FIFO_STATUS an then read the data with a burst SPI read from FIFO_DATA.
Everything is working ok, but when I provocate an FIFO overflow, an then try to reset the Overflow Flag by writing to FIFO_CONFIG_1, some times after this the FIFO_STATUS always return 0.
For debugging I have added a read out of the entire Sensor memory space, the data read by this debug function are OK, so the SPI communication is still working, an the Sensor seems to be in the same state as before but somehow there is no data to read from the FIFO (the ACCD registers contain valid data).
Is this a know problem? And can You tell me what i can do to prevent this problem?
best regards
Martin
03-05-2020 12:27 AM
When you met this problem, you can try to write FIFO_CONFIG_1 (0x3E) again.
After that you should able to get data into FIFO correctly.