S32K how to make clock fault?

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

S32K how to make clock fault?

1,336件の閲覧回数
tkdwofl
Contributor III

Hello!!

i want to make Clock fault when i check to Safety application.

pastedImage_1.png

1.i used SPLL and SCG_HCCR. but No error occur. how to make transfer error.

2. i know that fault is loss of lock or loss of clock.

    How to make loss of lock or loss of clock?

    Is it just a hardware fault? Because i have only one EV board(S32K144k)..

    i want to make fault on software(Design studio) 

3. i check SOSC or SPLL clock monitoring by oscilloscope. Which pin should i check and Which register should i use?

i would appreciate it if you could refer to the example code or manual.

I don't speak english well.

Thank you for taking my question.

1 返信

1,072件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

you can select clock output in Clock manager settings: 

pastedImage_1.png

And choose pin in Pin mux settings:

pastedImage_2.png

Don't forget generate processor expert code. 

I set PTD14 as SPLL clockk output with div 4:

pastedImage_4.png

Writing to  SCG_HCCR cause error only for S32K11x devices. If I'm correct you are using S32K144. On S32K144 is Error injection module (EIM). More info you can find in  Reference manual, chapter 21. 

About clock error - you can use clock monitoring and HW clock fault. More details you can find in Reference manual, chapter 6.2.4. I'm not sure if there is some software way how to perform loss of clock. 

Jiri