IT lexicon › Hardware › IWDG (independent watchdog)

IWDG (independent watchdog)

Hardware På svenska → Updated: 2026-11-05

STM32's watchdog with its own clock, which keeps counting after the main oscillator has died — and which cannot be stopped once started.

The "independent" part is the clock source: the IWDG runs from the internal LSI RC oscillator at roughly 32–40 kHz, not from the system clock. If the crystal fails or the clock tree gets stuck in a bad configuration, it still counts down to reset. Its sibling, the WWDG window watchdog, runs off the bus clock and can't promise that.

It's driven by writing keys to a register: 0xCCCC starts it, 0xAAAA reloads it, and 0x5555 unlocks the prescaler and reload value. After that there's no way back short of a reset, and through the option bytes it can even be started by hardware before the first instruction executes. The catch is that LSI is approximate — on older families the spread is tens of percent — so timeouts want generous margins.

← Back to the lexicon