I'm trying to implement an uart pass-through using two ports: uart2 and lpuart0 on the Kinetis KL17. (using KD1.3)
To implement this pass-through I would like to use DMA. I have tried implementing it, but so far I could not make it work.
My code setup is attached.
Any help is appreciated.
TIA.
-rd
Original Attachment has been moved to: dma_init.c.zip
Hi renatodutra,
Have you try to use the dma_transfer examples in SDK_2.1_MKL17Z256xxx4?
The newer version KSDK is recommanded to use. You can build and download the SDK_2.1_MKL17Z256xxx4 from MCUXpresso Config Tools.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
---------------------------------------------------------------------------------------------------------------------
Hi
You can get UART<->LPUART DMA or interrupt based pass-through in the uTasker project (works for m0+ and m4 based Kinetis processors).
Also, it can do pass-through without the need for UART by transferring GPIOs from one pin to another based on port change triggered DMA.
Regards
Mark
Mark,
Thanks for the suggestion.
At this point not planning to add "middleware" to the project, however this may be explored in the future.
Regards,
-rd