2018-03-21 01:01 AM
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
Solved! Go to Solution.
2018-07-05 12:47 AM
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();
2018-07-05 12:47 AM
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();