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:
Your guidance will greatly help ensure a smooth integration process. Thank you in advance for your support.
hi,MohamedAbdelsla
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.
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