Reactivation of DMA Tx and Rx channel when configured with SPI on IMXRT1060

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

Reactivation of DMA Tx and Rx channel when configured with SPI on IMXRT1060

763 次查看
jkaur38
Contributor I

I configured DMA with SPI master to transfer and receive data on LPSPI4. I have transmitted data from a hard coded array data  and it is transmitted successfully and data also received from MISO.

My final goal is to transmit same array in an infinite manner i.e I want to reactivate TX channel to send the array elements again ans reactivate RX channel to receive MISO data. 

I tried channel linking to reactivate same channel again but its not working for me.

I tried Trigger mode of DMa also but it was also not working.

If any example or document can shared it would be good.

Also wanted to know that Is there any cpu overhead if we use trigger mode instead of channel linking for my scenario?

0 项奖励
回复
1 回复

737 次查看
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @jkaur38 ,

Thanks for your interest in NXP MIMXRT series.

For the second question, using the trigger method does consume some CPU, the channel link method does not, so the channel link method is recommended.

For the first question, can you post the main modification code for the channel connection method?

 

Best regards,
Gavin

 

 

0 项奖励
回复