Skip to main content
lorant124
Associate II
March 8, 2021
Solved

IWDG reset

  • March 8, 2021
  • 1 reply
  • 1874 views

Hi,

I use STM32L496RGT6 with own bootloader.

If I start IWDG in bootloader and periodically reset it it is work good. If I jump to application and call HAL_IWDG_Refresh(..), function doesn't refresh IWDG and IWDG reset mcu.

I tried call MX_IWDG_Init() after HAL_IWDG_Refresh.. or only HAL_IWDG_Refresh but doesn't have effect.

Please help how to resolve this problem. I would like start IWDG in bootloader end periodically refresh it, after jumping into application fw continue refreshing IWDG counter if it is possible.

Thank you,

best regards

This topic has been closed for replies.
Best answer by waclawek.jan

> If I jump to application and call HAL_IWDG_Refresh(..), function doesn't refresh IWDG and IWDG reset mcu.

Are you sure it does not time out before you succeed to call it for the first time in the application?

Toggling a pin around the refresh call, and observing it using oscilloscope/logic analyzer would reveal if this is the case.

JW

1 reply

waclawek.jan
waclawek.janBest answer
Super User
March 9, 2021

> If I jump to application and call HAL_IWDG_Refresh(..), function doesn't refresh IWDG and IWDG reset mcu.

Are you sure it does not time out before you succeed to call it for the first time in the application?

Toggling a pin around the refresh call, and observing it using oscilloscope/logic analyzer would reveal if this is the case.

JW