60. Watchdog overview

The STM32MP21xx device includes watchdogs which offer a combination of high safety, timing accuracy and flexibility. In the whole document:

60.1 Watchdog main features

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

Block diagram showing the interconnection of independent watchdogs (IWDG1, IWDG2, IWDG3, IWDG4) with CPU1 GIC, CPU2 NVIC, EXTI2, and RCC reset control. Signals include ewit_iwdg, rst_iwdg, and System reset.

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.

Block diagram showing the interconnection of independent watchdogs (IWDG1, IWDG2, IWDG3, IWDG4) with CPU1 GIC, CPU2 NVIC, EXTI2, and RCC reset control. Signals include ewit_iwdg, rst_iwdg, and System reset.

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

Block diagram showing the interconnection of WWDG1 with CPU1 GIC, EXTI1, and CPU2 NVIC. Signals include rst_wwdg and ewit_wwdg.

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.

Block diagram showing the interconnection of WWDG1 with CPU1 GIC, EXTI1, and CPU2 NVIC. Signals include rst_wwdg and ewit_wwdg.