the spi dma transfer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

the spi dma transfer

1,113 次查看
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 项奖励
回复
2 回复数

918 次查看
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 项奖励
回复

918 次查看
yangjj
Contributor I

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

0 项奖励
回复