uart pass-through KL17

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

uart pass-through KL17

1,405 次查看
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

标签 (1)
0 项奖励
回复
3 回复数

1,173 次查看
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 项奖励
回复

1,173 次查看
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 项奖励
回复

1,173 次查看
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 项奖励
回复