Start second core form main core

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

Start second core form main core

Jump to solution
258 Views
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)
{
};

Tags (1)
0 Kudos
Reply
1 Solution
220 Views
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

 

 

View solution in original post

0 Kudos
Reply
1 Reply
221 Views
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 Kudos
Reply