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).
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