How can I send/receive CAN frames from Cortex A53 using BSP v38 provided from NXP S32G3RDB3 ?

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

How can I send/receive CAN frames from Cortex A53 using BSP v38 provided from NXP S32G3RDB3 ?

Jump to solution
2,861 Views
AhmedHaggag
Contributor I

Hi,

 

I need to know if it's possible to send/receive CAN frames from Cortex-A53 using the BSP v38 linux image on board S32G3RDB3 ? 

 

is it a must to build and flash image for Cortex M7 to use the CAN network ?

 

How to send CAN frames from Cortex A53 using C++ development components instead of Linux commands ?

 

I read all the documentation but still this point of LLCE is vague for me.

If there is an example of a video explaining this point that would be great

 

Thank you

Tags (3)
0 Kudos
Reply
1 Solution
2,827 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello  @AhmedHaggag,

It is in fact possible to send/receive CAN frames from Linux in the RDB3 board. Can you confirm if you checked section 12 LLCE Support specifically subsection 12.3 CAN of the BSP38 user manual? [page 101, 102, Linux BSP 38.0 User Manual for S32G3 platforms].

There you can find how to use some can-utils commands. Therefore is not mandatory to build an M7 image to use the CAN peripherals, Although it is highly recommended to drive the CAN modules from the M7 cores in critical applications.

We don't have any example on how to create a Linux C++ application to execute the can-utils commands. One suggestion could be to use the standard C library function popen, to execute terminal commands in your own programs.

For more information about the LLCE module you can check the following documents:

S32G-LLCE-STD-PB 

S32G-LLCE-FDK-PB

 

Let me know if this information was useful,

Best regards

View solution in original post

3 Replies
2,802 Views
AhmedHaggag
Contributor I

Thanks Alejandro for your support.

I did success to send and receive frames from Cortex-A53 the hosting for Linux image.

I understand that Cortex-M7 have better real-time features for controlling HW peripherals but right now I'm preparing a POC.

So I want to save some time for Initializing Core M and Core A and sharing data together by controlling the CAN controller sending and receiving direct from Cortex-A53. 

 

So If anyone did make an application running on Cortex-A53 using C/C++ on Linux image to send/receive CAN frame that could guide me in a example whatever it's Flexcan or LLCE_can that could be helpful. 

 

Thanks 

0 Kudos
Reply
2,784 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello @AhmedHaggag ,

I'm glad to know you were able to use the can-utils feature.

I was no able to find any example or guide on how to develop a C/C++ Linux application with LLCE can. What you can do is check the source code added to your Yocto when adding the LLCE CAN feature. There you might get an Idea on how to create your own C/C++ program. I'm sorry for the inconvenience.

 

Best regards

 

0 Kudos
Reply
2,828 Views
alejandro_e
NXP TechSupport
NXP TechSupport

Hello  @AhmedHaggag,

It is in fact possible to send/receive CAN frames from Linux in the RDB3 board. Can you confirm if you checked section 12 LLCE Support specifically subsection 12.3 CAN of the BSP38 user manual? [page 101, 102, Linux BSP 38.0 User Manual for S32G3 platforms].

There you can find how to use some can-utils commands. Therefore is not mandatory to build an M7 image to use the CAN peripherals, Although it is highly recommended to drive the CAN modules from the M7 cores in critical applications.

We don't have any example on how to create a Linux C++ application to execute the can-utils commands. One suggestion could be to use the standard C library function popen, to execute terminal commands in your own programs.

For more information about the LLCE module you can check the following documents:

S32G-LLCE-STD-PB 

S32G-LLCE-FDK-PB

 

Let me know if this information was useful,

Best regards