Regarding IWDG maximum timeout duration to reset in STM32F446RET6.
Hi!
I have working on the watch Dog implementation in STM32F446RET6.The board which I have used is NUCLEO-F446RET6.
I have followed the below mentioned steps,
1. Enabled the IWDG in system core using CubeMX of STM32CubeIDE. (which takes the LSI frequency for the IWDG as 32KHz in Clock Configuration.)
2. In Parameters settings of IWDG, Set the Pre-scalar divider as 256 and the down counter reload value as 4095 which are the maximum values to produce the time out of 32.768 seconds as per the reference manual.
I have theoretically calculated the duration using the formula,
IWDG_Time= [(Reload Value+1)*(Pre-scalar value)]/ LSI frequency
=[(4095+1)*256]/32000
= 32.768 seconds
- I didn't refresh the watch dog timer anywhere. So, As per the program the system need to be reset in 32.768 seconds (approximately 33 secs). But in real case, the system got reset after the 39 seconds or in 40 secs. Why this delay of 7 - 8 seconds is taken for the system reset?
- Similarly, I have configured the Pre-scalar divider as 256 and the down counter reload value as 2249 which are the values to produce the time out of 18 seconds.
IWDG_Time= [(Reload Value+1)*(Pre-scalar value)]/ LSI frequency
=[(2249+1)*256]/32000
= 18 seconds
-- In this case the system resets after the 22 seconds but not in 18 secs? Why?
I have attached the output screenshot for your reference.

Kindly, suggest the solution for this!
Thanks in Advance!!!
