diff --git a/lib/stm32/common/iwdg_common_all.c b/lib/stm32/common/iwdg_common_all.c index 44b3b9b3..84268ef9 100644 --- a/lib/stm32/common/iwdg_common_all.c +++ b/lib/stm32/common/iwdg_common_all.c @@ -108,6 +108,9 @@ void iwdg_set_period_ms(uint32_t period) while (iwdg_reload_busy()); IWDG_KR = IWDG_KR_UNLOCK; IWDG_RLR = count & COUNT_MASK; + + /* Refresh counter after configuration is complete */ + iwdg_reset(); } /*---------------------------------------------------------------------------*/