Also known as: watchdog, WDT
A watchdog timer (WDT) is a hardware counter that resets a system if the software fails to signal it within a set interval.1
Overview
The watchdog counts down continuously; healthy firmware must periodically “kick” (reset) it before it reaches zero. If the code hangs in an infinite loop, deadlocks, or crashes, it stops kicking, the counter expires, and the watchdog forces a hardware reset — bringing the device back to a known state with no human intervention. Most microcontrollers include one as a dedicated peripheral, often clocked independently so it survives even if the main clock fails.
Where it fits
A watchdog is a core reliability tool for any unattended embedded system: an industrial controller, a remote sensor node, or a bootloader guarding a firmware update. The trick is kicking it only when the system is genuinely making progress — kicking it blindly from an interrupt defeats the purpose. It is the safety net under both bare-metal and RTOS-based designs.
Sources
-
Watchdog timer — Wikipedia, on watchdog timers and recovery. ↩