the spi dma transfer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

the spi dma transfer

1,068件の閲覧回数
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 返答(返信)

873件の閲覧回数
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 件の賞賛
返信

873件の閲覧回数
yangjj
Contributor I

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

0 件の賞賛
返信