uart pass-through KL17

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

uart pass-through KL17

635 Views
renatodutra
Contributor I

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

Labels (1)
0 Kudos
3 Replies

403 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi renatodutra,

Have you try to use the dma_transfer examples in SDK_2.1_MKL17Z256xxx4?

dma_transfer lpuart uart.png

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!
---------------------------------------------------------------------------------------------------------------------

0 Kudos

403 Views
mjbcswitzerland
Specialist V

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

0 Kudos

403 Views
renatodutra
Contributor I

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

0 Kudos