I have a large project that I want to call the three cores (Z4_0, Z4_1 and Z2) at once for computation in MPC5748G.
How can I develop the three cores at the same time and achieve parallel computing of the three cores? And how should core to core communication be implemented?
Hope someone can help me. Thanks.
Hello,
How can I develop the three cores at the same time and achieve parallel computing of the three cores?
You will simply enable all cores in your program after startup.
You can for example refer to example code:
You will simply schedule the computation split to the cores according to your requirements. This is task for your OS, or scheduler.
And how should core to core communication be implemented?
This is more a general theory topic.
Well, there are many ways, for example:
https://www.nxp.com/design/training/multicore-programming-practices:TIP-MULTI-CORE
Best regards,
Peter
Hi, Peter
Thank you very much for your help. The development environment I use is “S32 Design Studio for Power Architecture Version 2.1”. Is there any project case of multi-core development under this environment? Thank you very much.
Best regards,
Henry
Hello,
Simply create a new project:
And set boot address for all cores:
In main of Z4 core you will see the other cores init:
Compile the project, burn it into micro and you are set.
Best regards,
Peter
Thank you very much for your help!! Best regards!!!