cancel
Showing results for 
Search instead for 
Did you mean: 

How to freeze IWDG without resetting MCU?

Utsavi
Associate

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

 

1 REPLY 1
Sarra.S
ST Employee

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? 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.