Skip to main content
SSeo.17
Associate III
May 30, 2019 9:53 AM UTC
Solved

Calling the HAL_Delay() function after __HAL_DBGMCU_FREEZE_IWD() results in an infinite waiting state.

In debug mode, __HAL_DBGMCU_FREEZEZE_IWD() was used to stop the IWDG. Later, the HAL_Delay() function results in an infinite waiting state. I'd appreciate it if you could let me know the cause and solution.

This topic has been closed for replies.
SSeo.17
SSeo.17Best answer
Associate III
May 30, 2019 10:56 AM UTC

It was my mistake.

It was STM32 reset because I set the IWDG counter too small.

Call HAL_Delay function after call of function __HAL_DBGMCU_FREEZE_IWDG() also works well.

1 reply

SSeo.17
SSeo.17AuthorBest answer
Associate III
May 30, 2019 10:56 AM UTC

It was my mistake.

It was STM32 reset because I set the IWDG counter too small.

Call HAL_Delay function after call of function __HAL_DBGMCU_FREEZE_IWDG() also works well.