Example LPUART DMA use?

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

Example LPUART DMA use?

1,379 次查看
davenadler
Senior Contributor I

I'm using RT1024 which has nice full-function LPUARTs. I need to receive characters via DMA with a completion interrupt on either (inactivity and data received) or (received data hits high-water mark or count). In the completion ISR/callback I'll transfer the received characters (into a FreeRTOS stream buffer) and do whatever is necessary to continue DMA input processing (toggling receive buffers if this is needed).

Is there an example that shows how to do this? Can it be done using one of the FSL drivers? Please note I do not want to use a ring buffer - just give me the data please.

Thanks in advance for any help,
Best Regards, Dave

PS: Next question will be DMA output, blocking til completion (sending output lines from a queue).

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

1,347 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @davenadler ,

   To the RT UART DMA, please refer to our application note:

https://www.nxp.com/docs/en/application-note/AN12679.pdf

The code is:

https://www.nxp.com/docs/en/application-note-software/AN12679SW.zip

This works perfect.

 

Please check it at first.

If you still have issues about it, just kindly let me know.

Best Regards,

Kerry

0 项奖励
回复