2025-10-28 5:57 AM - edited 2025-10-28 6:00 AM
Hello STM32 community,
I’m working on a project where I need to temporarily disable/enable the watchdog before entering into low-power/sleep modes, but I want to avoid resetting the MCU.
Here’s the context:
I’m using an STM32U385 MCU
I know that watchdog configuration can be changed via option bytes, but changes only take effect after a reset.
In my scenario, performing a reset is not acceptable because I need the MCU to resume execution seamlessly after sleep.
Problem:
The Independent Watchdog (IWDG) starts automatically once configured and cannot be stopped at runtime.
I want to enter sleep modes (like Stop or Standby) without being reset by the watchdog, but also in some scenarios watchdog needs to be run in sleep modes.
What I’ve considered:
Question for the community:
Is there a hardware-supported way to enable/disable the IWDG during sleep without resetting the MCU?
Any insights, examples, or best practices would be greatly appreciated.
Thanks in advance!
2025-10-28 6:03 AM - edited 2025-10-28 6:03 AM
> Is there a hardware-supported way to enable/disable the IWDG during sleep without resetting the MCU?
No (apart from option bytes).