Question
Could not set IWDG timeout to max (~32s) for STM32G031?
I am using Nucleo-G031K board and attempt to set IWDG timeout to max value of ~32s. Got hard fault. Here is the code. Any idea?
iwdg_hIwdg.Instance = IWDG;
iwdg_hIwdg.Init.Prescaler = IWDG_PRESCALER_256;
iwdg_hIwdg.Init.Window = IWDG_WINDOW_DISABLE;
iwdg_hIwdg.Init.Reload = 4095;
if (HAL_IWDG_Init(&iwdg_hIwdg) != HAL_OK)
{
iwdg_ErrorHandler();
}
