cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure IWDG with the variation in LSI frequency?

DC303132
Associate

As per datasheet of stm32f769ni, LSI frequency is temperature dependent. So watchdog reset timer can be affected as the LSI frequency varies. Is there any method to configure IWDG reload timer with specific interval of time with updated LSI frequency.

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

The IWDG was developed to replace an external watchdog. For safety reasons, it must therefore have its own clock that is independent of the main clock and that works in any case - hence the name Independent Watchdog. This cannot be achieved with a crystal-based oscillator, which is why a free-running and therefore relatively imprecise RC oscillator was implemented.

It would be quite expensive and would also make it difficult to meet the security requirements if the LSI frequency were to be determined permanently and the settings of the IWDG were to be constantly changed. That is why one usually looks at the worst case and assumes the highest possible LSI frequency so that a reset is not accidentally triggered if the CPU calculates a little longer, runs in a waiting loop or something similar.

Does it answer your question?

Regards

/Peter

In order 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.

View solution in original post

2 REPLIES 2
Peter BENSCH
ST Employee

The IWDG was developed to replace an external watchdog. For safety reasons, it must therefore have its own clock that is independent of the main clock and that works in any case - hence the name Independent Watchdog. This cannot be achieved with a crystal-based oscillator, which is why a free-running and therefore relatively imprecise RC oscillator was implemented.

It would be quite expensive and would also make it difficult to meet the security requirements if the LSI frequency were to be determined permanently and the settings of the IWDG were to be constantly changed. That is why one usually looks at the worst case and assumes the highest possible LSI frequency so that a reset is not accidentally triggered if the CPU calculates a little longer, runs in a waiting loop or something similar.

Does it answer your question?

Regards

/Peter

In order 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.

Hi Peter,

Thank you for the answer.

Without considering worst case scenario can we configure IWDG reload counter as the LSI frequency varies.