MPC5848G Multicore project - run the cores

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MPC5848G Multicore project - run the cores

1,379件の閲覧回数
kpdeshpande08
Contributor I

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.

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,021件の閲覧回数
raresvasile
NXP Employee
NXP Employee

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

1,021件の閲覧回数
kpdeshpande08
Contributor I

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

0 件の賞賛
返信

1,021件の閲覧回数
gj3526
Contributor III

HI,

How do you deal with the problem?Now I have a similar problem.

Thank you!

0 件の賞賛
返信