Hello every,
Recently, I used S32K142 SPI+DMA to transfer data and wanted to detect the completion flag of a DMA transfer. My channel was configured to send 4096 bytes from memory to peripheral, using SDK.
Now I have detected the Done and MAJORELINK of TCD control and status, but there is still a transmission error that cannot be transmitted .
Must the EDMA be reinitialized after one transmission?
Hi,
Edma shouldn't be reinitialized after each transfer.
Why you read DONE bit and Majorelink to detect transmission complete? You can use the callback from LPSPI driver which is called when the transmission is done.
Based on current details I can't figure what can cause errors in DMA. Can you share your project?
Razvan