cancel
Showing results for 
Search instead for 
Did you mean: 

I'm having trouble reading bytes from a device over SPI.

RMoor.1
Associate

I can read one 8-bit byte from the EEPROM in a device. When I try to read another byte (or the same byte), The SR bit goes low which is anded with mask SPI_FLAG_RXNE (always 1), which yields a 0 and puts my code into an infinite loop. Many people online have the same problem, but the solutions haven't worked for most of us. I'm not using DMA or Interrupts for the read. Is there a document that contains the sequence of events that should happen during a read at low levels?

0 REPLIES 0