How to prevent edma TCDn_CITER from auto reloading TCDn_BITER

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

How to prevent edma TCDn_CITER from auto reloading TCDn_BITER

Jump to solution
962 Views
huangjia
Contributor II

Hi dears, i want to send uart data by edma on s32k344. I called Uart_asyncSend() funciton in uart.c to send data, but it can only send one time in dma mode. I debuged the function code in single step mode, found TCDn_CITER had reloaded the value from TCDn_BITER after the first tranfer finish, then it returned a busy error.

So how to set the register to prevent TCDn_CITER from auto reloading TCDn_BITER?

Thanks.

0 Kudos
Reply
1 Solution
952 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you show error status register?

Use DREQ bit if you don't want another transfer after end of major loop. Or check DLAST field in the TCD whether it does not point to some invalid address, if you want to trigger another major loop.

View solution in original post

0 Kudos
Reply
1 Reply
953 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you show error status register?

Use DREQ bit if you don't want another transfer after end of major loop. Or check DLAST field in the TCD whether it does not point to some invalid address, if you want to trigger another major loop.

0 Kudos
Reply