Hi Delaney
My customer also come across this issue, we have discussed in the E2E thread before: link.
the SPIA is allocated to CPU2, and SPI internal loopback is tested to show the DMA setting is correct.
But when disable the internal loopback and communicate with SPI slave device, the data address has wrong offset as shown below, the first word 0x0001 should located in [0], but now it located in [16]:
the target word quantity is 80 words, SPI works in 10M.
I find the root cause of this wrong data address offset is that SPI overflow, when RXFFOVF is set, the data address offset is 16 words, but when RXFFOVF is not set, the data address offset is 0 word, which is correct.
I do the below check:
1. initialize DMA first and standby before SPI master enable data transmission. issue is not fixed.
2. Try to reset the SPI manually when DSP run --- there is no more RXFFOVF and data address is correct.
I doubt that DMA is not ready when the first RXFFIL is generated which cause RXFFOVF.
Thanks
Joe