Enabling dual-core in S32K344 after OS startup

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

Enabling dual-core in S32K344 after OS startup

跳至解决方案
1,174 次查看
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

标记 (3)
0 项奖励
1 解答
1,161 次查看
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

在原帖中查看解决方案

2 回复数
1,162 次查看
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,090 次查看
Artur_S
Contributor II
Thank you for reply!
0 项奖励