60. Watchdog overview
The STM32MP21xx device includes watchdogs which offer a combination of high safety, timing accuracy and flexibility. In the whole document:
- • The Cortex-A35 is also called CPU1 or MPU.
- • The Cortex-M33 is also called CPU2 or MCU.
60.1 Watchdog main features
- • Two independent watchdogs (IWDG1/2) dedicated to CPU1
The IWDG1 is dedicated to CPU1 secure environment (TrustZone securable). - • Two independent watchdogs (IWDG3/4) dedicated to CPU2
The IWDG3 is dedicated to CPU2 secure environment (TrustZone securable). - • One window watchdog (WWDG1) dedicated to CPU2
- • The watchdogs can be configured to generate an early wake-up interrupt.
- • Independent watchdogs can generate a system reset or a notification in case of timeout or refresh outside the expected window.
- • The watchdog behavior can be configured via option bytes (hardware auto-start mode and freeze in low-power modes), and debug option (freeze in debug mode).
60.2 Watchdog functional description
All watchdog peripherals (independent and window) are used to detect and resolve malfunctions due to software or hardware failures.
Figure 721 shows the interconnection of the independent watchdogs into the system.
The independent watchdogs (IWDG1 to IWDG4) 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.
IWDGs may generate a system reset when a timeout occurs (rst_iwdg[4:1] signal) according to the application selection. This signal is also routed to the EXTI in order to wake up another CPU to handle the error.
Either IWDG1 when tdcid = 0x1 or IWDG3 when tdcid = 0x2, generates a system reset when the timeout occurs. The reset signal generates also a tamper event when the timeout occurs (rst_iwdg[3,1] signal). See Section 20.3.5: Watchdog resets for additional information.
Figure 721. Top view of independent watchdogs

This block diagram illustrates the interconnection of four independent watchdogs (IWDG1, IWDG2, IWDG3, IWDG4) within a system. Each IWDG block contains 'ewit' and 'iwdg_out_rst' signals. The 'ewit_iwdg[2:1]' signal from IWDG1 and IWDG2 is connected to the CPU1 GIC. The 'rst_iwdg[4:2]' signal from IWDG1 and IWDG2 is connected to the EXTI2. The 'rst_iwdg[4:1]' signal from IWDG1, IWDG2, and IWDG3 is connected to the EXTI2. The 'ewit_iwdg[4:3]' signal from IWDG3 and IWDG4 is connected to the RCC reset control. The 'rst_iwdg[4,2,1]' signal from IWDG1, IWDG2, and IWDG3 is connected to the CPU2 NVIC. The 'System reset' signal is connected to the CPU2 NVIC. The 'c1rst' and 'c2rst' signals are connected to the RCC reset control. The 'TAMPER' signal is connected to the EXTI2. The 'MSv73121V1' label is at the bottom right.
Figure 722 shows the interconnection of the window watchdogs into the system.
The WWDG1 is clocked with the APB3 clock, and provides a reset and an early interrupt (ewit_wwdg[1] signal) that is connected to the CPU2 (NVIC) interrupt controller.
The WWDG1 also generates a reset signal when a timeout occurs (rst_wwdg[1] signal). This signal is only routed to the EXTI1 in order to wake up the CPU1 core to handle emergency tasks if needed.
Figure 722. Windows watchdogs top view

This block diagram illustrates the interconnection of the window watchdog (WWDG1) with the system. The WWDG1 block contains 'rstwdg' and 'ewit' signals. The 'rst_wwdg[1]' signal is connected to the EXTI1. The 'ewit_wwdg[1]' signal is connected to the CPU2 NVIC. The 'rst_wwdg[1]' signal is also connected to the EXTI1. The 'MSv73122V1' label is at the bottom right.