the spi dma transfer

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

the spi dma transfer

893 Views
18682445387
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
2 Replies

698 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

698 Views
18682445387
Contributor I

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

0 Kudos