Need Help with Locking Core 0 and Running Only Core 1

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

Need Help with Locking Core 0 and Running Only Core 1

1,219 Views
Santhoshraj
Contributor I

Hi,

I am currently working on a project using the GHS (Green Hills Software) compiler where Core 0 is active. I need to lock Core 0 to prevent it from executing while I initialize and run Core 1. but I’m not sure if I'm implementing it correctly. Can someone provide an example of how to properly start core 1, or point me to relevant documentation

Thank you!

0 Kudos
Reply
3 Replies

1,181 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I need to lock Core 0 to prevent it from executing while I initialize and run Core 1.

All you need to do in put it into halt state.

To do so you can execute wait instruction:

 asm(" wait");

or

asm ("halt");

This will stop execution of instructions on core. This is commonly used in the idle task of OS.

For more details please refer to core reference manual of e200z7.

Best regards,

Peter

0 Kudos
Reply

1,195 Views
Santhoshraj
Contributor I

Hi,

MPC5777C (Evaluation broad )  e200z759n3 Core in GHS compiler

Thank you!

0 Kudos
Reply

1,196 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

before I will give any advice, could you please share which device (uC) you are using?

Best regards,

Peter

0 Kudos
Reply