Hi All,
The customer setting S32K312 PLL then system will reset, attached file is the customer sample code.
could you give me some comments?
thanks.
FUNC(void, SYSDAL_APPL_CODE) SysDal_DriverInitZero(void)
{
OsIf_Init(NULL_PTR);
/* Initialise MCU Driver */
#if (MCU_PRECOMPILE_SUPPORT == STD_ON)
Mcu_Init(NULL_PTR);
#else
Mcu_Init( &Mcu_Config );
#endif
/* Set the CPU Clock to the PLL */
#if (MCU_INIT_CLOCK == STD_ON)
Mcu_InitClock(McuClockSettingConfig_HighPerf); // only do this setting, system will reset every one second.
#endif
#if(MCU_NO_PLL == STD_OFF)
/* Wait until the PLL is locked */
while (MCU_PLL_LOCKED != Mcu_GetPllStatus()); //include this setting, system will reset one time only.
/* Activate the PLL Clock */
Mcu_DistributePllClock(); //include this setting, system will reset one time only.
#endif/*MCU_NO_PLL == STD_OFF*/
/* Initialize PORT */
Port_Init( &Port_Config );
/* Set the MCU to RUN mode */
Mcu_SetMode(McuModeSettingConf_Run);
}
Main Loop
for (;;) {
(void)Dio_FlipChannel((Dio_ChannelType)DioConf_DioChannel_View1);
}