45. Watchdogs overview
The devices feature three embedded watchdog blocks which offer a combination of high safety, timing accuracy and flexibility.
45.1 Watchdog main features
- • Two independent watchdogs (IWDG1 and IWDG2) dedicated to MPU.
- – The IWDG1 is TrustZone aware.
- • One window watchdog (WWDG1) dedicated to the MCU.
- • The MPU can receive an interrupt if the WWDG1 generates a reset, or an early interrupt.
- • The MCU can receive the WWDG1 early interrupt.
- • Watchdogs behavior can be configured via option bytes and debug options.
- • The MPU can receive the IWDG1 or IWDG2 early interrupts.
45.2 Watchdog brief functional description
Both watchdog peripherals (Independent and Window) allow detecting and resolving malfunctions due to software or hardware failures.
The IWDG1 and IWDG2 are dedicated to MPU, while the WWDG1 is dedicated to MCU. In addition, the IWDG1 is located onto a secure bus (APB5), and can only be accessed by a secure application when TrustZone is enabled.
The Figure 503 shows the interconnection of the watchdogs into the system.
The WWDG1 is clocked with the APB1 clock, and provides a reset and an early interrupt signal.
The early interrupt provided by the WWDG1 (wwdg1_it) is connected to both MPU (GIC) and MCU (NVIC) interrupt controllers. It allows the application to decide which processor has to handle emergency tasks if needed.
The WWDG1 also generates a reset to the MCU when a timeout occurs (wwdg1_out_rst signal). This signal is also routed to the EXTI in order to wake-up the MPU core if the MCU is reset by the WWDG1 block.
The independent watchdogs (IWDG1 and IWDG2) are clocked by the low-speed clock (LSI) and thus stay active even if the main clock fails. In this way they are best suited to applications which require the watchdog to run as a totally independent process outside the main application. The IWDGs are best suited to recover from unexpected software or hardware failures.
The early interrupt provided by the IWDG1 (iwdg1_it) and IWDG2 (iwdg2_it) is connected to the MPU (GIC) interrupt controller to handle emergency tasks if needed.
The early wake-up signal provided by the IWDG1 (iwdg1_wkup) and IWDG2 (iwdg2_wkup) is connected to the EXTI to wake-up the MPU if needed.
The IWDG1 and IWDG2 generate a system reset when a timeout occurs (iwdg[2:1]_out_rst signals). The IWDG1 and IWDG2 blocks are designed to work with the MPU, in addition, the IWDG1 is TrustZone aware.
Please refer to RCC, Section : Clock distribution for watchdogs (IWDG[2:1], WWDG1), and Section 10.3.5: Watchdog reset for additional information.
Figure 503. Watchdogs top view

The diagram illustrates the hardware architecture for watchdog timers and their integration with the system's interrupt and reset mechanisms. The components and their connections are as follows:
- WWDG1: Sends a wakeup signal (
wwdg1_it) to the MPU GIC (interrupt 182) and the MCU NVIC (interrupt 0). It also sends a reset signal (wwdg1_out_rst) to the RCC reset control block. - IWDG1: Sends a wakeup signal (
iwdg1_wkup) to the EXTI block (line 45). It sends a reset signal (iwdg1_out_rst) to the RCC reset control block. It also sends an interrupt signal (iwdg1_it) to the MPU GIC (interrupt 183). - IWDG2: Sends wakeup signals (
iwdg2_wkup) to both the EXTI block (line 46) and the RCC reset control block. It sends an interrupt signal (iwdg2_it) to the MPU GIC (interrupt 175). - EXTI: The
exti_wwdg1_wkupsignal from EXTI (line 68) is connected to the MPU GIC (interrupt 32). - RCC reset control: Receives reset signals from WWDG1, IWDG1, and IWDG2 to manage system resets.
- MPU GIC: Manages interrupts for the watchdog timers (182, 183, 175, 32).
- MCU NVIC: Manages the interrupt for WWDG1 (0).
MSv47409V3