2020-04-14 12:59 AM
Hi
I am trying to read multiple IMU array of 6 in FIFO continous mode using SPI. The idea is to read the data very fast till it empty and change the clock selection to the next IMU and read till it empty and so on.
For one IMU, it can correctly read all the value out, but once the seond IMU exist(Complie the code with second), the data become read out will become very messy.
I initially throught it was the the reading speed is too slow, but after looking at the FIFO status register, the speed seems fast enough, because the FIFO status regiter shows the FIFO is empty quiet frequently.
However, I am not sure how to debug this, not wure why 1 IMU works but the same configuration does not work for two IMU .
I am wondering any one enounter some similar problem? Thank you for your help.
2020-04-15 06:45 AM
Hi @jb , it would be helpful to have an idea of the code you are using. Are you configuring all the IMUs before starting the sequential FIFO reading? Are all the IMU connected to the same SPI physical lines except from the CS pin (I'm not sure if you are switching this pin or the clock among the IMUs, can you share your application schematic)? And how are you managing the acquired data with your application processor (via buffer, DMA...)? Regards