embedded
runtime_error
ai_generated
true
WATCHDOG: System reset due to WDT timeout
ID: embedded/watchdog-timer-reset
82%Fix Rate
85%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| any | active | — | — | — |
Root Cause
Watchdog timer triggered system reset due to main loop taking too long.
genericWorkarounds
-
90% success Feed/kick watchdog in main loop at regular intervals
HAL_IWDG_Refresh(&hiwdg) in main while loop
-
82% success Use windowed watchdog for tighter timing control
WWDG allows both early and late refresh detection
Dead Ends
Common approaches that don't work:
-
Disable watchdog timer entirely
85% fail
Removes the safety mechanism that recovers from lockups.
-
Set watchdog timeout to maximum value
70% fail
Masks timing issues that will resurface under load.