Skip to main content
Timo Eggers
Associate
Mar 21, 2018 8:01 AM UTC
Solved

Freezing the IWGD Watchdog under Debug is not working

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.
    Timo Eggers
    Timo EggersBest answer
    Associate
    Jul 5, 2018 7:47 AM UTC
    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
    Jul 5, 2018 7:47 AM UTC
    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();