You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include <iwdg.h>
// ...
// turn on to recover after hang
boolean useWDT = true;
void setup()
{
//...
if( useWDT )
{
iwdg_init(IWDG_PRE_128, 11500000);
}
}
void loop()
{
// ...
# Call this to reset the watchdog timer.
# If it isn't called then the board will reset.
iwdg_feed();
}
The text was updated successfully, but these errors were encountered:
"3.20.4 Independent watchdog
The independent watchdog is based on a 12-bit downcounter and 8-bit prescaler. It is
clocked from an independent 32 kHz internal RC and as it operates independently from the
main clock, "
so
iwdg_init(IWDG_PRE_128, 11500000); // does not make sense
This is just a tracking issue to follow along for https://forums.adafruit.com/viewtopic.php?f=57&t=114903. As best as I could tell it still hasn't been resolved, although there is a workaround provided of using a watchdog timer to reset the board if it hangs. More info on watchdog timers at http://librambutan.readthedocs.io/en/latest/libmaple/api/iwdg.html.
The text was updated successfully, but these errors were encountered: