How to access UART1 (dev/ttyLF1) in Linux (A-Core)

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

How to access UART1 (dev/ttyLF1) in Linux (A-Core)

跳至解决方案
1,011 次查看
ZeusChen
Contributor II

Hi NXP Community,

I want to verify the UART1 on our board (referenced S32G-VNP-RDB2) in Linux System.

As I execute "echo "XXX" > /dev/ttyLF1", I could not probe the signal on UATR1 TXD.

I could not communicate with other PC using minicom through UART1 either.

How could I verify the UART1 in Linux System?

Or UART1 is used by M-Core only?

标签 (1)
0 项奖励
回复
1 解答
964 次查看
nxf92355
NXP Employee
NXP Employee

Hi Liang-Chou Chen

Yes,  There are a uart example for M7 in S32ds. Uart_Example_S32G274A_M7 this example

uses uart1 and tx rx. read description.txt file of this example. let us know for more quarry

Regards ,

Tushar

在原帖中查看解决方案

0 项奖励
回复
3 回复数
986 次查看
nxf92355
NXP Employee
NXP Employee

Hi Liang-Chou Chen

 

Hope you are doing well

Can you tell us which bsp version you are using ?

 

Regards ,

Tushar

0 项奖励
回复
972 次查看
ZeusChen
Contributor II

Hi nxf92355,

I use BSP_33.0.

I tyied to modify the console environment variable as ttyLF1 in u-boot, than booted to kernel.

But the console still used UART0, although the /sys/class/tty/ttyLF1/console was "Y".

We just want to verify the function of UART1, no matter using A53 or M7.

We have tried to print string through UART1 using M7, but that just verified TX of UART1.

Are there any documents about simple examples to verify RX of UART1 using M7?

0 项奖励
回复
965 次查看
nxf92355
NXP Employee
NXP Employee

Hi Liang-Chou Chen

Yes,  There are a uart example for M7 in S32ds. Uart_Example_S32G274A_M7 this example

uses uart1 and tx rx. read description.txt file of this example. let us know for more quarry

Regards ,

Tushar

0 项奖励
回复