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

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

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

The diagram illustrates the interconnection of various watchdog timers and system control blocks. The MPU GIC block has pins 182, 183, 175, and 32. The EXTI block has pins (68), 45, 68, and 46. The RCC reset control block is central. The WWDG1 block connects to EXTI via exti_wwdg1_wkup and EXTI pin 68, and to the MCU NVIC via wwdg1_it. The IWDG1 block connects to EXTI pin 45 via iwdg1_wkup and EXTI pin (68) via iwdg1_it. The IWDG2 block connects to EXTI pin 46 via iwdg2_wkup and EXTI pin 68 via iwdg2_it. Both IWDG1 and IWDG2 send reset signals (iwdg1_out_rst and iwdg2_out_rst) to the RCC reset control block. The MCU NVIC also receives a reset signal from the RCC block. The diagram is labeled MSv47409V3 in the bottom right corner.

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