hi,
I am creating a multicore application(SDK) for DEVKIT-MPC5748G using S32Design Studio, wherein I want my Core Z4_0(which is also my boot core) to be dedicated completely as a TCP client for sending some data onto TCP server continuously and CoreZ4_1 to receive CAN data continuously onto the CAN Bus and both of these cores to do their job simultaneously. The issues I am facing is when I debug the launchgroup and Run the Z4_0.elf it waits for Z4_1.elf to run to connect to the server and perform further tasks. Only when I run Z4_1 my TCP client on Z4_0 connects and starts sending onto the TCP server but when I send the CAN data from CAN logger to receive the CAN data on my application running on Z4_1 the application on Z4_0 stops.
How Can I solve this problem? What might be the reason causing this issue?
I am attaching my application named CAN_ETH_Integration.
Hi,
It looks like CAN interrupts are enabled on both cores. Please add the following code into the Z4_0 main function, prior to start_example.
INT_SYS_DisableIRQ(CAN0_Wake_Up_IRQn);
INT_SYS_DisableIRQ(CAN0_Error_IRQn);
INT_SYS_DisableIRQ(CAN0_ORed_IRQn);
INT_SYS_DisableIRQ(CAN0_ORed_00_03_MB_IRQn);
INT_SYS_DisableIRQ(CAN0_ORed_04_07_MB_IRQn);
INT_SYS_DisableIRQ(CAN0_ORed_08_11_MB_IRQn);
INT_SYS_DisableIRQ(CAN0_ORed_12_15_MB_IRQn);
INT_SYS_DisableIRQ(CAN0_ORed_16_31_MB_IRQn);
INT_SYS_DisableIRQ(CAN0_ORed_32_63_MB_IRQn);
INT_SYS_DisableIRQ(CAN0_ORed_64_95_MB_IRQn);
Please let me know if it worked.
Thank you,
Rares
hi,
after disabling these interrupts, CAN reception on core Z41 now doesn't block core zero.
But my client server communication at core Z40 still starts only after I run core Z41
HI,
How do you deal with the problem?Now I have a similar problem.
Thank you!