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.
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.
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!
-----------------------------------------------------------------------------------------------------------------------
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.
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.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------