I have an external oscillator as system oscillator - that works fine. I have already enabled the clock monitoring feature on register SCG_SOSCCSR[SOSCCM] - that works fine.
Now my question: How to test this feature at the application software - is it possible to force an error flag in SOSCERR?
Thanks,
Steve
Hello Steve, Jehoda,
Sorry for jumping into this thread but I thought that it would be good to add a comment regarding another method to test the clock monitor functionality for future reference of the community users. You can disturb the SOSC oscillation by shorting crystal terminal to GND using a 1kohm resistor and the interrupt would be issued once the failure is detected on the clock. In the Interrupt Service Routine, you must quickly switch the system clock to other clocks like FIRC or SIRC to avoid issues.
Best Regards,
Atzel Collazo
Hello Steve,
The easiest way to test the application SW is to have wrong programming of the clock monitoring units (CMUs). There is currently no fault injection to mimic failing clock on the monitored or monitoring clocks within the CMUs.
Best Regards,
Jehoda Refaeli