Running Only Core 1 on MPC5777C with GHS Compiler

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Running Only Core 1 on MPC5777C with GHS Compiler

1,359 次查看
Santhoshraj
Contributor I

Hi,

I'm working with the MPC5777C evaluation board and the GHS compiler. I need to configure my project to run only on core 1.

Could someone please guide me on how to set this up? Specifically, I would like to know:

  • Any specific compiler flags or settings I should use.
  • How to configure the project files to ensure core 1 is the only active core.
  • Any relevant documentation or examples that might help.

Thank you!

0 项奖励
回复
4 回复数

1,255 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

In the reference manual:

petervlna_0-1728972757907.png

So you have to execute wait instruction on the core0.

Then you will ask for halt reques in SIU_HLT1

You can see I have executed wait from core1, then I ahve switched to core2 and asked for halt of the clocks from debugger:

petervlna_1-1728976801595.png

After that core0 is halted.

Best regards,

Peter

 

0 项奖励
回复

1,343 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

It is quite simple.

You will boot on core0 by default. Once you have all initialization done and core 1 active.

You simply put core0 clocks in halt

petervlna_0-1728367739805.png

and then put core0 into reset:

petervlna_1-1728367793912.png

Best regards,

Peter

 

 

0 项奖励
回复

1,292 次查看
Santhoshraj
Contributor I

Hi,

Any alternate solution. Because SIU.HLT1.B.CORE0=1; condition is Not working to halt the core0   or please provide me any example code 

Thank you! 

0 项奖励
回复

1,283 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I will test it and share the results.

Best regards,

Peter

0 项奖励
回复