Skip to main content
Visitor II
April 7, 2025
Question

How to freeze IWDG without resetting MCU?

  • April 7, 2025
  • 1 reply
  • 314 views

Hi,
I am working on STM32 MCU, in my application once I start IWDG, based on certain event I want to freeze IWDG.
Since my application is running, I don't want to reboot MCU.
Once event processed, I want to continue IWDG without resetting MCU.

Can anyone let me know how to achieve this?

Regards,
Utsavi B

 

    This topic has been closed for replies.

    1 reply

    ST Employee
    April 8, 2025

    Hello @Utsavi

    The STM32 MCUs contain a feature called debug freeze. You can stop several peripherals, including the watchdog.

    Check register DBGMCU_APB4FZ1 for this! 

    Otherwise, the IWDG can not be stopped, What you can do is change the prescaler to maximum so the watchdog is counting slowly, but it won't reset the MCU unless you didn't refresh it before the timeout. 

    >>based on certain event 

    Is this event related to some low power modes?