embedded runtime_error ai_generated true

WATCHDOG: System reset due to WDT timeout

ID: embedded/watchdog-timer-reset

Also available as: JSON · Markdown
82%Fix Rate
85%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
any active

Root Cause

Watchdog timer triggered system reset due to main loop taking too long.

generic

Workarounds

  1. 90% success Feed/kick watchdog in main loop at regular intervals
    HAL_IWDG_Refresh(&hiwdg) in main while loop
  2. 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:

  1. Disable watchdog timer entirely 85% fail

    Removes the safety mechanism that recovers from lockups.

  2. Set watchdog timeout to maximum value 70% fail

    Masks timing issues that will resurface under load.