Example code for LIN Interface of S32G3 Reference Board

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

Example code for LIN Interface of S32G3 Reference Board

1,254 次查看
A_VIJAYA7
Contributor III

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

标记 (1)
0 项奖励
回复
3 回复数

1,237 次查看
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,233 次查看
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 项奖励
回复

1,205 次查看
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 项奖励
回复