I am trying to add clock monitor unit in s32k116 mcu to the software. I initialized clock as FIRC(48MHz). I added RCCR[REF_COUNT]=42, HTCR[LFREF]=36, HTCR[HFREF]=47, GCR[FCE]=1 and activated PCC_CMUX_CFG. But i dont understand how i can control cmu error and how can i set counter for cmu counts?
Solved! Go to Solution.
We are working on Functional Safety Module for S32K116, Do you have any reference code for MCU test module.
Can you please help on this ...
Generally, you can either re-configure measured clock to value outside of the thresholds or change the thresholds itself. I can't see other option.