Hey.
We use the same SPI bus for accessing an external flash memory and gyroscope device (Bosch chip).
We encounter a problem regarding the SPI when performing the following actions at the same time (we use a mutex on the SPI to eliminate collisions):
- Access the external memory.
- Reading data from the gyroscope device.
When i perform reads from the Gyroscope without accessing the external memory, the data is correct.
But when i perform an access to the external memory right before reading the Gyroscope, the Gyroscope values are corrupted.
I verified on the oscilloscope that we don't have a collision on the bus, but i saw that i have a 1ms latency on the MISO pin.
Do you have any suggestions what is the cause of the latency? How to fix it?
What else in the SPI configuration may solve the SPI issue?
Thank you,
Nir Barniv | Firmware Team Leader
UPRIGHT Technologies LTD