S32K118 Clock Monitoring Unit Configuration

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K118 Clock Monitoring Unit Configuration

2,037件の閲覧回数
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.

タグ(2)
3 返答(返信)

1,789件の閲覧回数
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 件の賞賛
返信

1,789件の閲覧回数
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 件の賞賛
返信

1,789件の閲覧回数
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,

Have you enabled the CMU clock?

pastedImage_1.png

Regards,

Daniel