Example code for LIN Interface of S32G3 Reference Board

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

Example code for LIN Interface of S32G3 Reference Board

1,100 Views
A_VIJAYA7
Contributor III

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

Tags (1)
0 Kudos
Reply
3 Replies

1,083 Views
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 Kudos
Reply

1,079 Views
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 Kudos
Reply

1,051 Views
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 Kudos
Reply