KW38 UART not working when changing pin config

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

KW38 UART not working when changing pin config

跳至解决方案
2,026 次查看
nidhintomy
Contributor IV

"hello world." is not printed on output terminal.

I am using frdmkw36_demo_apps_hello_world example.

I change LPUART_RX from pin 42 to 38 and LPUART_TX from pin 43 to 39 by using mcuxpresso pin config tools. Also i tried with LPUART_RX - pin 46 and LPUART_TX - pin 47.

How to print "hello world." using LPUART_RX as pin 38 and LPUART_TX as pin 39 ?

 

Best Regards,

Nidhin

标签 (1)
0 项奖励
回复
1 解答
2,012 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi Nidhim,

Could you please help us with more details about your print interface?

Just to confirm, are you using the FRDM-KW38 or is it a custom board?

The FRDM-KW38 EVB OpenSDA Interface routes pin 42 (LPUART0_RX) and pin 43 (LPUART0_TX) to an USB interface, which makes the console printing (on your PC) possible using this interface as source when connecting the board via USB (J11).

If your application is intended to print data in console (on your PC), and UART pins need to be changed (for example, to pin 38 and pin 39), you may need to implement an external UART to USB converter when using UART for serial printing.

Also, if you are using a SDK example project, please note that UART should be selected in Project Options when importing the example:

EduardoZamora_1-1664295098185.png

Regards,
Eduardo.

在原帖中查看解决方案

2 回复数
2,013 次查看
EduardoZamora
NXP TechSupport
NXP TechSupport

Hi Nidhim,

Could you please help us with more details about your print interface?

Just to confirm, are you using the FRDM-KW38 or is it a custom board?

The FRDM-KW38 EVB OpenSDA Interface routes pin 42 (LPUART0_RX) and pin 43 (LPUART0_TX) to an USB interface, which makes the console printing (on your PC) possible using this interface as source when connecting the board via USB (J11).

If your application is intended to print data in console (on your PC), and UART pins need to be changed (for example, to pin 38 and pin 39), you may need to implement an external UART to USB converter when using UART for serial printing.

Also, if you are using a SDK example project, please note that UART should be selected in Project Options when importing the example:

EduardoZamora_1-1664295098185.png

Regards,
Eduardo.

2,007 次查看
nidhintomy
Contributor IV

Hi @EduardoZamora 

Thanks for clarification.

I am using KW36 EVB.

 

Best Regards,

Nidhin

0 项奖励
回复