configure_debug_freeze
Freeze IWDG, WWDG, RTC, and timers via DBGMCU registers while the core is halted, preventing watchdog resets from disrupting STM32 debugging sessions.
Instructions
Freezes peripherals (IWDG, WWDG, RTC, timers) while the core is halted via the DBGMCU freeze registers, so the watchdog cannot reset the target out from under the debugger. Family is taken from the debug profile MCU if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | If false, only return the planned register writes (default true). | |
| family | No | STM32 family or part number. Known: ['stm32f4', 'stm32l4']. | |
| session | No | Optional debug-session name. Omit for the default target. | |
| peripherals | Yes | Peripherals to freeze, e.g. ['iwdg', 'wwdg', 'rtc', 'tim2']. |