Skip to main content
SSeo.17
Associate III
May 30, 2019
Solved

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

  • May 30, 2019
  • 1 reply
  • 797 views

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.
Best answer by SSeo.17

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

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.