cancel
Showing results for 
Search instead for 
Did you mean: 

Freezing the IWGD Watchdog under Debug is not working

Timo Eggers
Associate
Posted on March 21, 2018 at 09:01

Hello,

i have a STM32F051 and use the independent watchdog.

I would like the IWDG counter to stop if the core is halted.

I set the DBG_IWDG_STOP in the DBG Modul, but when i stop the core with the debuger my mcu still goes in reset.

I tried setting the bit with µVision IDE, with HAL driver code and with code writing to the register directly.

Best Regards,

Eggers

1 ACCEPTED SOLUTION

Accepted Solutions
Timo Eggers
Associate
Posted on July 05, 2018 at 09:47

I found the problem!

You need to start the clock for the Debug Module!

You need to call __DBGMCU_CLK_ENABLE(); before calling __HAL_DBGMCU_FREEZE_IWDG();

View solution in original post

1 REPLY 1
Timo Eggers
Associate
Posted on July 05, 2018 at 09:47

I found the problem!

You need to start the clock for the Debug Module!

You need to call __DBGMCU_CLK_ENABLE(); before calling __HAL_DBGMCU_FREEZE_IWDG();