[RT1060] Another solution LPUART DMA Rx timeout

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

[RT1060] Another solution LPUART DMA Rx timeout

705 Views
Wielebny
Contributor I

I implement LPUART tx and rx support after DMA. I don't know the length of the received data.
I know I can use the idle length but it's not precise enough.
Thought I could use an unused DMA channel triggered by kDmaRequestMuxLPUART1Rx which will write the value 0 to the counter. If nothing is received, the counter will count up to the set value and the timer will interrupt, which will mean the end of the transmission. Could it theoretically work?

Labels (1)
0 Kudos
Reply
1 Reply

683 Views
Omar_Anguiano
NXP TechSupport
NXP TechSupport

Hello
I hope you are well.
To count the received bytes which counter are you using? Could you provide more detailed information about the solution you want to implement?
The ring buffer example from the SDK might be helpful since it counts the received bytes.

If you have more questions do not hesitate to ask me.
Best regards,
Omar

0 Kudos
Reply