How to enable UART2 in P2040

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

How to enable UART2 in P2040

1,447 次查看
gouravjain
Contributor IV

Hi All,

In my custom board which is based on P2041RDB, by default console prints are coming in UART1. But i wanted to get the output prints on UART2 instead UART1.  Following changes have been made from my end,

1) changed RCW[366:368] from 011 to 101

2) changed uboot parameter "consoldev" from ttyS0 to ttyS1.

but still prints are coming in UART1.

Note: As of now i'm trying at uboot level only. 

Can some one guide me what else change is required ??

Thanks,

Gourav

0 项奖励
回复
4 回复数

1,288 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello gourav jain,

Please edit u-boot configuration file include/configs/P2041RDB.h, please find the section "Serial Port", and change the variable "CONFIG_CONS_INDEX" to "2" instead of "1", then rebuild u-boot.

In addition, in Kernel bootargs, please change bootargs as "root=/dev/ram rw console=ttyS1,115200" rather than "console=ttyS0".


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,288 次查看
gouravjain
Contributor IV

Hi Yiping,

Thanks for your help. Its working now.

Have one dobt can't we enable both the UART together ??

--

Gourav

0 项奖励
回复

1,288 次查看
gouravjain
Contributor IV

Hi Yiping,

Waiting for your response....

0 项奖励
回复

1,288 次查看
gouravjain
Contributor IV

Hi Yiping Wang,

UART-1 and UART-2 both are working individually. How can i get the data in both the UARTs simultaneously ??

regards,

Gourav

0 项奖励
回复