Hi, I am having a problem with SPI receive in compatibility mode.
My application is successfully communicating over SPI interface. I have a function to receive data which selects a device and generates clocks while holding SIMO line low to clock in data from the slave. I then wait until RXEMPTY flag in RXBUF is cleared before reading data from the buffer.
But periodically my software is hanging as RXEMPTY is not getting cleared. I don't understand how this can happen, even if no device is present, generation of clocks should shift data into the device and then transfer to RXBUF.
What could be the problem to cause RXEMPTY not to get set? This is not happening all of the time but does always seem to be associated with one SPI bus (SPI5).
Thanks for your help,
Mark.