S32K144 Watchdog

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

S32K144 Watchdog

1,533件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

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

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

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