Dear team
I found that the cortex-A5 was not working properly after the power was restarted When I debugged the MAC5754H project.
I built a new project using the S32DS software,using LED lights to observe the state of the kernel work。However,I found all cores can work properly in the DEBUG mode,but only the Cortex_M4 and the Cortex-M0 can work after the power was restarted。
This is the initialization code:
void init_load_cores ()
{
clock_init();
memory_init_m0();
memory_init_a5();
core_init();
return;
}
static void core_init(void)
{
extern uint32_t _cm0p_start_addr;
extern uint32_t _ca5_start_addr;
MC_ME_CCTL1 = 0x00FF;
MC_ME_CCTL2 = 0x20FF;
core_boot_addr_set(MC_CA5, (uint32_t)&_ca5_start_addr);
core_boot_addr_set(MC_CM0P, (uint32_t)&_cm0p_start_addr);
core_rmc_enable(MC_CA5);
core_rmc_enable(MC_CM0P);
enter_mode(MC_DRUN);
while (mode_transition_ongoing()) {}
}
Regards,
jianpeng