Example code for LIN Interface of S32G3 Reference Board

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

Example code for LIN Interface of S32G3 Reference Board

1,042件の閲覧回数
A_VIJAYA7
Contributor III

Hi,
Iam using S32G3 Reference board. Can I get any example code for LIN interface.

タグ(1)
0 件の賞賛
返信
3 返答(返信)

1,025件の閲覧回数
Joey_z
NXP Employee
NXP Employee

hi,A_VIJAYA7

You can find the LIN demo in the RTD.  The RTD demo installed to the S32DS IDE as the shown following picture.

Joey_z_2-1747143282241.png

Hope it can help you.

BR

Joey

 

0 件の賞賛
返信

1,021件の閲覧回数
A_VIJAYA7
Contributor III
I am working with the S32G-VNP-RDB3 Reference Board using the Yocto-based Linux BSP (penEmbedded/Yocto Linux BSP for NXP Auto platforms). I would like to:

Linux is up on my board, I want to Develop a userspace application to communicate through LIN interface on Linux.
Could you please help with the following:

What are the required Linux APIs or interfaces (e.g., character devices, ioctl, sysfs, etc.) to access and control the LIN interface from userspace?
Are there any example codes or reference applications available for LIN communication in userspace on this platform?
Any specific device tree configurations or kernel modules that need to be enabled for LIN support?
Thank you for your support.
0 件の賞賛
返信

993件の閲覧回数
Joey_z
NXP Employee
NXP Employee

hi,A_VIJAYA7

Thank you for your reply.

Refer to the BSP User Manual, Linux BSP can configure LINFLExD channels to be used in UART mode exclusively, you should modify the n <builddirectory>/conf/local.conf file to do it as the shown the following picture.

Joey_z_0-1747190669731.png

You also can find some document and drivers in Kernel.

Joey_z_2-1747190815825.png

Hope it can help you.

BR

Joey

 

 

0 件の賞賛
返信