S32K1 - How to test clock monitoring feature per software.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K1 - How to test clock monitoring feature per software.

2,697 Views
steve_gähl
Contributor I

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

2 Replies

2,439 Views
atzelcollazo
NXP Employee
NXP Employee

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

0 Kudos
Reply

2,439 Views
jehoda_refaeli
NXP Employee
NXP Employee

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

0 Kudos
Reply