2024-08-21 02:11 AM
Hi,
I am using STM32G491RE for my product. I want to implement watchdog timer functionality. In the data sheet we have IWDT and WWDT. Which one is best for real time products and I am using HSE for clock. I am planning to use watch dog timer reset time in seconds.
For IWDT in the document mentioned programmable timeout range is 125usec to 32.8 sec.
For WWDT how can I calculate the maximum timeout range?? My APB1 clock is 96MHz.
For OTA update, Does watchdog timer effect the functionality??
Disabling the watchdog timer in bootloader code is enough for the watchdog timer not interfacing with the update process??
Can anyone suggest.
Thanks
2024-08-21 05:29 AM
There is no general "best". Otherwise why have multiple? The best one for your application depends on the needs of your application. There is much overlap between the two and if you're just looking for a general watchdog, either will suffice. If you want a long timeout, IWDG is probably better.
Here are the maximum timeout values for WWDG given in the datasheet. In general, much shorter durations than IWDG. Adjust for your PCLK.
Watchdog cannot be disabled once started. You need to reset the chip to disable, or continue to reset the watchdog in the bootloader.
(Note: They are called IWDG and WWDG.)
2024-08-27 09:09 AM