spi-fsl-dspi driver does not supports DMA. I made some driver modification for DMA support.
After code test I got next result. DMA transmit is ok. DMA receives about 50% of lost packets (some parts of buffer contents previous message). The issue is in DMA. Not all data are copied from device fifo into memory. RXCTR = 0 in rx callback transaction indicates that data is read. SPIx_RXFRn register shows a new correct value. Do you have idea about reason of bad DMA transfers? Draft code is attached.
Original Attachment has been moved to: spi-fsl-dspi.c.zip
Solved! Go to Solution.
Hi Oleg Petrakivskyi,
Apologies for our delayed response.
From your information, DMA transmission is fine. Overall domination among the bus is changed into the interrupt controller after the CPU acknowledges DMA request, to verify Rx FIFO - could you please share your slave peripheral device hardware information with us. It'll help us to debug/reproduce your issue in my end.
Thanks
Timesys Support
Timesys Support do you have an update?
timesyssupport can you help here?