S32K118 Clock Monitoring Unit Configuration

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

S32K118 Clock Monitoring Unit Configuration

1,554 Views
sherifomar
Contributor I

Hello,

I am working with S32K118 and I am trying to configure the clock monitoring unit according to the below steps in the manual:

pastedImage_1.png

However, when trying to write in any register of the clock monitoring unit such as RCCR / HTCR / LTCR / IER / GCR ,

A hard fault exception is generated and I am unable to change the registers' value at all.

Is there some protection on these registers that I have to unlock before writing?

Appreciate your kind help.

Thanks and Regards.

Tags (2)
3 Replies

1,306 Views
sherifomar
Contributor I

Hello Daniel,

Thank you so much for your answer. This was indeed the issue.

However I have another inquiry about the clock monitoring unit, I understand I can manipulate the thresholds in HTCR and LTCR registers to generate a Loss of Clock reset when monitoring the FIRC, I already tested that. But how can I change the CMU configuration to generate the same reset using the internal SOSC (8MHz) in S32K118 EVB? or does the CMU monitor only the FIRC?

Thanks and Regards,

Sherif

0 Kudos

1,306 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Sherif,

CMU does not monitor SOSC.

Section 25.2.2.4 Loss-of-clock (LOC), RM rev.9. shows how to enable the SOSC monitor. 

Regards,

Daniel

0 Kudos

1,306 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

Have you enabled the CMU clock?

pastedImage_1.png

Regards,

Daniel