I have to enable IWDG on my STM32 based project. It doesn't work properly as I expect to. Below is the code which CubeMX created.
hiwdg.Instance = IWDG;
hiwdg.Init.Prescaler = IWDG_PRESCALER_8;
hiwdg.Init.Window = 4095;
hiwdg.Init.Reload = 49;
if (HAL_IWDG_Init(&hiwdg) != HAL_OK)
{
Error_Handler();
}
I'm using STM32F030K6T6 for this project and when I don't refresh the timer, I expect a reset after a timeout, right?
But I don't even put the Refresh function line in the code and there is no reset on my board. I put a delay at the beginning to notice the reset but there is no one.
Do you guys guess it can be a bug in STM32CubeIDE? (As I am using this IDE)
I would appreciate your help.