Skip to main content
mm.51
Associate
January 5, 2023
Solved

How can I calculate an approximate IWDG window ?

  • January 5, 2023
  • 1 reply
  • 4666 views

Development Board: Nucleo-L476RG.

IDE version: STM Cube IDE 1.11.0

For the system watchdog timer, there's an equation(attached.) Is there an equivalent equation for the IWDG ?

Any suggestions would be appreciated.

Thanks

This topic has been closed for replies.
Best answer by Pierre_Paris

Hello @Community member​ ,

Thank you for your question. As you may know, the independent watchdog is based on a 12-bit downcounter and 8-bit prescaler.

Indeed, there is an equivalent equation to calculate the refresh interval :0693W00000Y7r5nQAB.pngIn the formula above,

Flsi is equal to an independent 32 kHz internal RC (LSI).

Piwdg_prescaler is the prescaler value.

Niwdg_counterval is the downcounter reload value.

You can configure the two last parameters in STM32CubeMX > Pinout & Configuration > System Core > IWDG > Configuration once the IWDG is activated.

As conclusion, you need to refresh the IWDG before the 12-bit downcounter reaches the zero value. So the Tiwdg time is the maximum delay. 

If you have any other questions or suggestions, don't hesitate to ask.

Pierre

1 reply

Pierre_Paris
Pierre_ParisBest answer
ST Employee
January 10, 2023

Hello @Community member​ ,

Thank you for your question. As you may know, the independent watchdog is based on a 12-bit downcounter and 8-bit prescaler.

Indeed, there is an equivalent equation to calculate the refresh interval :0693W00000Y7r5nQAB.pngIn the formula above,

Flsi is equal to an independent 32 kHz internal RC (LSI).

Piwdg_prescaler is the prescaler value.

Niwdg_counterval is the downcounter reload value.

You can configure the two last parameters in STM32CubeMX > Pinout & Configuration > System Core > IWDG > Configuration once the IWDG is activated.

As conclusion, you need to refresh the IWDG before the 12-bit downcounter reaches the zero value. So the Tiwdg time is the maximum delay. 

If you have any other questions or suggestions, don't hesitate to ask.

Pierre

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.