Inquiry on Integrating CAN Driver with IPCF_FreeRTOS_S32G399A_M7_0 Example

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

Inquiry on Integrating CAN Driver with IPCF_FreeRTOS_S32G399A_M7_0 Example

432 Views
MohamedAbdelslam
Contributor III

Hi experts, 

I am currently working with the "IPCF_FreeRTOS_S32G399A_M7_0" example to enable communication between the M core and A core on the S32G399A and the communication is working fine with this sample. I intend to integrate a CAN driver with FreeRTOS into this example.

Could you please advise on the key considerations or best practices for integrating the CAN driver in this context? Specifically:

  1. How to handle clock initialization of two cores to avoid any conflicts?
  2. Are there any recommended tools, documentation, or examples available for this integration?
  3. Are there potential timing or resource conflicts between IPCF communication and CAN driver tasks that I should mitigate?

Your guidance will greatly help ensure a smooth integration process. Thank you in advance for your support.

Tags (1)
0 Kudos
Reply
1 Reply

413 Views
Joey_z
NXP Employee
NXP Employee

hi,MohamedAbdelslam

Thank you for contacting us.

When CAN driver is integrated into IPCF, it is necessary to pay attention to the clock initialization conflict between M core and A core.The peripheral clock required by the A53, if only required by the A53, is initialized by the A53 ATF itself.
1.After the CAN clock is configured for core M, check the ATF content of core A, locate the S32g_pm.h file, and try to disable clock initialization for CAN_PE_CLK related peripherals.

Joey_z_1-1732267010166.png

2.At present, there is no official documentation and tools related to this issue. It is suggested that when adding other CAN driver, to resolve conflicts is to analyze that there are no duplicate initialization clocks or pins between M and A cores.

Hope it can help you.

BR

Joey

 

 

0 Kudos
Reply