S32K144 Watchdog

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

S32K144 Watchdog

1,323 Views
yinshi
Contributor I

Hello,

      In my project, wdg_pal component configuration as follow. I use OSIF_TimeDelay function for a 2s dealy, before this function is called,  i feed watchdog first, expect watchdog won't reset while waiting. But actually, watchdog reset in 1s. Why the watchdog timeout value isn't the value i set.

pastedImage_2.png

0 Kudos
3 Replies

1,207 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi YIN SHI,

Would you please make sure that OSIF_TimeDelay function is a 2s delay.

If so, please check if you click Generate Processor Expert Code. Otherwise it will not update the codes in wdg_pal1.c.

wdg_pal1.png

The LED will show yellow after about 2.4ms if I didn't feed the watchdog.

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,207 Views
yinshi
Contributor I

Hi Robin

    Thanks for your reply. The delay time is exactly 2s, and i generated code after timeout value changed. Is there any possibility could cause this problem.

0 Kudos

1,207 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi YIN SHI,

Please try to test below codes modified from wdg_pal_interrupt_s32k144 example. The watchdog timeout value is configured 2.4s.

If delay function is called twice, it will stop at break point.(Stop if the previous reset was caused by the Watchdog)

If delay function is called only once, it will toggle RED LED.

wdg_pal feed delay.png

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos