Enabling dual-core in S32K344 after OS startup

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

Enabling dual-core in S32K344 after OS startup

Jump to solution
1,168 Views
Artur_S
Contributor II

Hello,

We are developing a system with custom bootloader and AUTOSAR application running on top, based on chip S32K344.
So far we learned from documentation how to enable 2nd core during boot, but this means we already have to handle it on bootloader stage (since we can have only one BOOT_HEADER structure under startup entry).

But... is there any way to start with single core (in boot loader) and enable second one later, when our application (MicrosarOS) starts?

Best regards,

Artur

Tags (3)
0 Kudos
1 Solution
1,155 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Artur,

yes, it's possible. Here's simple example:

MC_ME->PRTN0_CORE1_ADDR = (uint32_t)(vtor);

MC_ME->PRTN0_CORE1_PCONF = MC_ME_PRTN0_CORE1_PCONF_CCE_MASK;

MC_ME->PRTN0_CORE1_PUPD = MC_ME_PRTN0_CORE1_PUPD_CCUPD_MASK;

MC_ME->CTL_KEY = MC_ME_CTL_KEY_KEY( 0x5AF0);

MC_ME->CTL_KEY = MC_ME_CTL_KEY_KEY(~0x5AF0);

Regards

Lukas

View solution in original post

2 Replies
1,156 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi Artur,

yes, it's possible. Here's simple example:

MC_ME->PRTN0_CORE1_ADDR = (uint32_t)(vtor);

MC_ME->PRTN0_CORE1_PCONF = MC_ME_PRTN0_CORE1_PCONF_CCE_MASK;

MC_ME->PRTN0_CORE1_PUPD = MC_ME_PRTN0_CORE1_PUPD_CCUPD_MASK;

MC_ME->CTL_KEY = MC_ME_CTL_KEY_KEY( 0x5AF0);

MC_ME->CTL_KEY = MC_ME_CTL_KEY_KEY(~0x5AF0);

Regards

Lukas

1,084 Views
Artur_S
Contributor II
Thank you for reply!
0 Kudos