Hello!!
i want to make Clock fault when i check to Safety application.
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.
Hi,
you can select clock output in Clock manager settings:
And choose pin in Pin mux settings:
Don't forget generate processor expert code.
I set PTD14 as SPLL clockk output with div 4:
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