We are having an issue with SPI where we get an overflow error. We are using controller TMS570LS0332 to communicate using Mibspi and we configured the master as follows:
// WDELAY = 0 -> Wait Delay = (0+2)Vclk = 25 nsec
// PARPOL = even
// PARITYENA = disabled
// WAITENA = disabled
// SHIFTDIR = MSB first
// POLARITY = SPI CLK low inactive
// PHASE = no SPI CLK delay
// PRESCALE = 39 -> baud = Vclk/(39+1) = 2.0 MHz
// CHARLEN = 16 bits
In the technical reference manual of the TMS320F280045 in register SPIFFRX there is the description of RXFFOVF field (It should be set if "More than16 words have been received in to the FIFO"). Our SPI in the DSP controller uses the same configuration for the word format of Master SPI and FIFO mode active to receive 16 chars of 16 bits. If we receive the data without considering this error we see that what we send in master is correctly received in slave, we also checked with the oscilloscope and the amount of characters, clock cycles and everything seems correct. However, we are getting this RXFFOVF error flag set. Under what conditions would this error be set?