Q: How to set the LIN UART master/slave mode?

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

Q: How to set the LIN UART master/slave mode?

1,314 次查看
liujialu_2024
Contributor III

On board S32G-VNP-RDB2 with BSP 42.0.

I got the LIN UART device:

FLEX_LIN: /dev/ttyLF2

LLCE_LIN: ttyLF3 ttyLF4 ttyLF5 ttyLF6

then How can I know the LIN port is in Master or Slave mode?

In Linux user space, for example, with tools like stty or some others.

and How can I set the LIN port mode, master or slave?

标记 (5)
0 项奖励
回复
5 回复数

1,195 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @liujialu_2024 

Yes, from hardware view, the LIN could be supported, since described clearly from the S32G2 RM and schematic(both LLCE LIN and LINFlexD).

But from BSP perspective, LIN are not officially supported by the BSP software. 

 

BR

Chenyin

0 项奖励
回复

1,265 次查看
chenyin_h
NXP Employee
NXP Employee

Hello, @liujialu_2024 

Thanks for you reply.

Yes, they could be configured to be used in UART mode by Linux BSP.

 

BR

Chenyin

0 项奖励
回复

1,258 次查看
liujialu_2024
Contributor III

but according to the S32G-VNP-RDB2 sch

S32G-VNP-RDB2_DesignFiles/Schematic/SPF-47440_E.pdf

liujialu_2024_0-1732880782914.png

LLCE_LIN connect LIN Bus PHY chip: TJA1124CHG/0Z.

UART + LIN_PHY?

标记 (2)
0 项奖励
回复

1,297 次查看
chenyin_h
NXP Employee
NXP Employee

Hi, @liujialu_2024 

Thanks for your post.

From BSP UM, the LINFlexD on S32G is configured to UART mode in the BSP, it is not supported as LIN mode(both master and slave) in the BSP.

As a result, there is no such examples/implementation for your requirement.

Sorry for your inconvenience.

 

BR

Chenyin

0 项奖励
回复

1,268 次查看
liujialu_2024
Contributor III

What about LLCE_LIN0 ~ LLCE_LIN3, are they all in UART mode?

标记 (3)
0 项奖励
回复