Skip to main content
Timo Eggers
Associate
March 21, 2018
Solved

Freezing the IWGD Watchdog under Debug is not working

  • March 21, 2018
  • 1 reply
  • 1072 views
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

    This topic has been closed for replies.
    Best answer by Timo Eggers
    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();

    1 reply

    Timo Eggers
    Timo EggersAuthorBest answer
    Associate
    July 5, 2018
    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();