Hello all,
I am currently working with the S32G3 platform on A53 core and have been able to configure and use the CAN interfaces for sending and receiving messages using the provided command-line tools such as cansend and candump. However, I am looking for a more programmatic way to handle CAN communication.
Could you please let me know if there is any example application or sample code available that demonstrates how to send and receive CAN messages programmatically using a C/C++ interface or a similar API, especially for the A53 core running Linux BSP 40?
Any guidance, documentation, or example resources would be greatly appreciated.
Hello, @MohamedAbdelslam
Thanks for contacting NXP support.
From NXP BSP perspective, the only reference document is the BSP UM, which detailed introduced the CAN settings, usage with can-utils, but there is not developer's guide for such kind of programming.
From my experience, the CAN implementation in Linux is based on socket, most experience from Linux socket programming could be also valuable for the Linux CAN related developing.
I suggest reading the corresponding kernel document for details: https://docs.kernel.org/networking/can.html
BR
Chenyin