Start second core form main core

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

Start second core form main core

跳至解决方案
1,164 次查看
sobo
Contributor III

Hello,

 

I use a S32K358 eval board, I try to start the second core with the main core.

So in the main core after init I call the function StartCore2 but the second core doesn't start.

What else I need to check ?

 

If I use CM7_2_ENABLE the 2  and don't call StartCore2 the core start correctly.

I use one software/hex file for the both core.

Sophie

here the code :

static void StartCore2(void)
{
IP_MC_ME->PRTN0_CORE4_ADDR = (uint32) &__CORE2_VTOR;
IP_MC_ME->PRTN0_CORE4_PCONF = 0x00000001;
IP_MC_ME->PRTN0_CORE4_PUPD = 0x00000001;
IP_MC_ME->CTL_KEY = 0x5AF0U;
IP_MC_ME->CTL_KEY = 0xA50FU;
while (IP_MC_ME->PRTN0_CORE4_PUPD == 1)
{
};
while ((IP_MC_ME->PRTN0_CORE4_STAT & MC_ME_PRTN0_CORE4_STAT_CCS_MASK) == 0)
{
};

标记 (1)
0 项奖励
回复
1 解答
1,126 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Sophie,

Can you check my test project:

https://community.nxp.com/t5/S32K-Knowledge-Base/S32K358-Multicore-Start-CM7-2-from-CM7-0/ta-p/19238...

I used your code and Power_IP RTD driver to start CM7_2.

In both cases, the blue LED (S32K3x8EVB-Q289), starts blinking 5 seconds after power-on reset.

 

Thank you,

BR, Daniel

 

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,127 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Sophie,

Can you check my test project:

https://community.nxp.com/t5/S32K-Knowledge-Base/S32K358-Multicore-Start-CM7-2-from-CM7-0/ta-p/19238...

I used your code and Power_IP RTD driver to start CM7_2.

In both cases, the blue LED (S32K3x8EVB-Q289), starts blinking 5 seconds after power-on reset.

 

Thank you,

BR, Daniel

 

 

0 项奖励
回复