2016-09-21 06:56 AM
Since firmware version 1.13 there is a big issue with debugging.
The firmware starts the watchdog during initialization. This result in reset when a breakpoint reaches. Before this version, I could start the IWDG by myselft to enable it. Any Idea how to hint the firmware to start during initialization? Or any Idea how to hint IWDG from run out during stop because of breakpoint? Thanks Osto2016-09-22 02:51 AM
Hi
Osto
,
Overall rework of the IWDG driver in this version for a more efficient implementation
:
Remove the following APIs:
-
HAL_IWDG_Start()
-
HAL_IWDG_MspInit()
-
HAL_IWDG_GetState()
Update implementation:
-
HAL_IWDG_Init(): this function insures the configuration and the start of the IWDG counter
-
HAL_IWDG_Refresh(): this function insures the reload of the IWDG counter
Refer to drivers release note (in STM32Cube package ) for more details.
So,
HAL_IWDG_Init() in an old code, will start the IWDG.
-Hannibal-
2016-09-27 05:09 AM
Hi,
I solved the problem with __HAL_DBGMCU_FREEZE_IWDG() added in main.c after peripheral initialization. In this case the WD-Counter will stop when debugger stops because of a breakpoint and hint to reset during the wait. Thanks a lot, Osto