Hi,all
We need to set up CAN Bus quickly, but Mcu_SetMode() is taking up a lot of time( 85 ~ 120 ms).
Can I optimize the configuration of Mcu_SetMode? Or some other solution?
BRs,
xianlong
Hi,
The following two do not need to be checked. There are also some other questions, which can be referred to this.
S32K3 functional reset causes increased start-up time
Best Regaeds,
xianlong
We are facing a similar issue. The function Mcu_SetMode requires up to 40 ms to complete, and we call Mcu_InitClock beforehand.
Mcu_Init(&Mcu_Config);
Mcu_InitClock(McuClockSettingConfig_0);
while(MCU_PLL_LOCKED != Mcu_GetPllStatus())
{
/* Busy wait until the System PLL is locked */
}
Mcu_DistributePllClock();
Mcu_SetMode(McuModeSettingConf_0); /* Initialize Platform Driver */ Platform_Init(NULL_PTR);Hi @wuxianlong,
Before call Mcu_SetMode, you should call Mcu_InitClock() to change clocks to the correct values with the mode that needs to change as described details in the Reference manual.
At the moment, I have only this proposal.
Best regards,
Dan