the spi dma transfer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

the spi dma transfer

1,114 Views
yangjj
Contributor I

TIM截图20180817154731.pngHello 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?

0 Kudos
Reply
2 Replies

919 Views
razva_tilimpea
NXP Employee
NXP Employee

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

0 Kudos
Reply

919 Views
yangjj
Contributor I

The problem has been solved,the transport byte beyond the configuration array,The spi is now running

0 Kudos
Reply