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

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

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

ソリューションへジャンプ
636件の閲覧回数
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 解決策
589件の閲覧回数
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 返答(返信)
611件の閲覧回数
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 件の賞賛
597件の閲覧回数
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 件の賞賛
590件の閲覧回数
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 件の賞賛