[stm32u585] HAL_IWDG_Init reconfig does not take effect
hello,
I encountered a problem while developing for stm32u585.
I change the iwdg reload value by HAL_IWDG_Init(), and then HAL_PWR_EnterSTANDBYMode(), but the new reload value does not take effect:
hiwdg.Instance = IWDG;
hiwdg.Init.Prescaler = IWDG_PRESCALER_64;
hiwdg.Init.Window = 4095;
hiwdg.Init.Reload = 3600;
hiwdg.Init.EWI = 0;
HAL_IWDG_Init(&hiwdg);
HAL_IWDG_Refresh(&hiwdg);
HAL_Delay(300); //more than one downcount
HAL_PWR_EnterSTANDBYMode();if delay before refresh, it seems work
hiwdg.Instance = IWDG;
hiwdg.Init.Prescaler = IWDG_PRESCALER_64;
hiwdg.Init.Window = 4095;
hiwdg.Init.Reload = 3600;
hiwdg.Init.EWI = 0;
HAL_IWDG_Init(&hiwdg);
HAL_Delay(300); //more than one downcount
HAL_IWDG_Refresh(&hiwdg);
HAL_PWR_EnterSTANDBYMode();Is this the correct process ? If I want to ensure the modification is successful, what should I pay attention to
