cancel
Showing results for 
Search instead for 
Did you mean: 

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

SSeo.17
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
SSeo.17
Associate III

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.

View solution in original post

1 REPLY 1
SSeo.17
Associate III

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.