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

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

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