P2040 UART issue

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

P2040 UART issue

580 次查看
gouravjain
Contributor IV

Hi All,

P2040 supports two UARTs.

I'm trying to get the data in both the UART simultaneously but at present i'm able to to get data in either first or second via following changes,

1) RCW file

2) P2041rdb.c board file

3) And root=/dev/ram rw console=$consoledev in uboot. [where consoledev : ttyS0 / ttyS1]

Would be very thankful if someone pls let me know how to get the data on both the UART.

regards,

Gourav Jain

0 项奖励
回复
1 回复

486 次查看
Pavel
NXP Employee
NXP Employee

The P2041 u-boot can use UART0 or UART1 as console.

Set the CONFIG_CONS_INDEX to 2 in the /include/configs/P2041RDB.h file in the u-boot source if USRT1 is needed as console.

 

For using both UART under Linux use the following command:

cat /proc/interrupts

 

Is there interrupt from both UARTs?


Have a great day,
Pavel Chubakov

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

0 项奖励
回复