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
Solved! Go to Solution.
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
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