47. Watchdogs overview

The devices feature three embedded watchdog blocks which offer a combination of high safety, timing accuracy and flexibility.

47.1 Watchdog main features

47.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 542 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 542. Watchdogs top view

Block diagram showing the interconnection of Watchdog timers (IWDG1, IWDG2, WWDG1) with the MPU GIC, EXTI, RCC reset control, and MCU NVIC.

The diagram illustrates the interconnection of various watchdog timers and system components:

MSv47409V3

Block diagram showing the interconnection of Watchdog timers (IWDG1, IWDG2, WWDG1) with the MPU GIC, EXTI, RCC reset control, and MCU NVIC.