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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
719 Views
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?

Labels (1)
0 Kudos
Reply
1 Solution
672 Views
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

View solution in original post

0 Kudos
Reply
3 Replies
694 Views
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 Kudos
Reply
680 Views
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 Kudos
Reply
673 Views
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 Kudos
Reply