Do we have a safe mode in S32K11x that automatically switches to an internal clock whenever there is a loss of clock detected in the external oscillator? I seem to understand There is an SOSC monitor that can flag an error in case of loss of external clock, but it is up to application software to do corrective measures?
thanks,
Christian
Solved! Go to Solution.
Hello Christian,
In S32K1xx there is not possible to automatically switch to an internal clock when there is a loss of clock detected in the external oscillator. The user has to decide how to react when this condition appears. For S32K11x it is intended that the FIRC would be the system clock and not the XOSC. It is the only clock we have and if a problem appears one can decide interrupt to reset the system. If the system is not able to handle the interrupt and a hanging situation appears, the WDOG will reset the system.
For a clock error:
As you may know, there are two ways to react when a clock error condition appears that is selectable in SCG_SOSCCSR[SOSCCMRE] register and these are the ways how we should react:
Interrupt reaction: one can switch to FIRC in the interrupt routine
Reset reaction: the system starts on FIRC clock
Best Regards,
Atzel Collazo
Hello Christian,
In S32K1xx there is not possible to automatically switch to an internal clock when there is a loss of clock detected in the external oscillator. The user has to decide how to react when this condition appears. For S32K11x it is intended that the FIRC would be the system clock and not the XOSC. It is the only clock we have and if a problem appears one can decide interrupt to reset the system. If the system is not able to handle the interrupt and a hanging situation appears, the WDOG will reset the system.
For a clock error:
As you may know, there are two ways to react when a clock error condition appears that is selectable in SCG_SOSCCSR[SOSCCMRE] register and these are the ways how we should react:
Interrupt reaction: one can switch to FIRC in the interrupt routine
Reset reaction: the system starts on FIRC clock
Best Regards,
Atzel Collazo