How to develop the three cores (Z4_0, Z4_1 and Z2) at the same time in MPC5748G

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

How to develop the three cores (Z4_0, Z4_1 and Z2) at the same time in MPC5748G

875 Views
HHHenry
Contributor I

 

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?

HHHenry_0-1684145895641.png

Hope someone can help me. Thanks.

0 Kudos
Reply
4 Replies

851 Views
petervlna
NXP TechSupport
NXP TechSupport

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:

https://community.nxp.com/t5/MPC5xxx-Knowledge-Base/Example-MPC5748G-DPM-Multicore-GHS614/ta-p/10996...

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

0 Kudos
Reply

842 Views
HHHenry
Contributor I

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

0 Kudos
Reply

834 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Simply create a new project:

petervlna_0-1684313616659.png

And set boot address for all cores:

petervlna_1-1684313661010.png

In main of Z4 core you will see the other cores init:

petervlna_2-1684313749106.png

Compile the project, burn it into micro and you are set.

Best regards,

Peter

0 Kudos
Reply

832 Views
HHHenry
Contributor I

Thank you very much for your help!! Best regards!!!

0 Kudos
Reply