MPC5743R default booting core is core1, not core 0. So, need clear understanding on multicore logic, and how to enable different core
a) The actual core id is read by “uint16_t coreId = GetCoreID ();” in InitINTC.
b) The interrupt configuration shall base on coreid, not hardcode “INTC_0.PSR[226].R= 0x4001; /* IRQ sent to Core 1, Priority 1 */”
c) The macro shall be enabled based on core id, TURN_ON_CPU1
A quick test code is as attached, move all configuration to core 1, and interrupt works well.
IDE: S32DS for Power version: 2017r1 with Update 10.
Hello,
MPC5743R default booting core is core1, not core 0.
Yes, this is correct. No matter of micro version the boot core is always core 1 which is only core capable of BAF execution.
So, need clear understanding on multicore logic, and how to enable different core
This is described in reference manual:
In short -
1. program CORE0 Control (MC_ME_CCTL1) register to enable core for target modes
2. program CORE0 Address (MC_ME_CADDR1) with RMC bit set
3. perform mode transition to desired mode
second option is:
Enable the core0 and set his boot address in RCHW, and it will be active after reset directly.
regards,
Peter