How to enable UART2 in P2040

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to enable UART2 in P2040

1,451件の閲覧回数
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,292件の閲覧回数
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,292件の閲覧回数
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,292件の閲覧回数
gouravjain
Contributor IV

Hi Yiping,

Waiting for your response....

0 件の賞賛
返信

1,292件の閲覧回数
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 件の賞賛
返信