Skip to main content
PHolt.1
Senior
September 17, 2023
Question

32F417 IWDG - hardware watchdog mode question

  • September 17, 2023
  • 3 replies
  • 3675 views

If you set the IWDG to start using the option byte, the watchdog cannot be disabled subsequently. Am I right that

a) the prescaler can be modified

b) the counter itself can be reloaded

Item b) would be a vulnerability, surely, because faulty code could for ever prevent the watchdog tripping.

This topic has been closed for replies.

3 replies

Pavel A.
Super User
September 17, 2023

Yes. (This is why more "serious" projects have other reliability measures besides of such WD).

TDK
Super User
September 18, 2023

How is the counter able to be reloaded a vulnerability? Isn't that sort of required, unless you want the chip to reset all the time? If someone can get faulty code onto the chip, you've already lost. Typically the reload is done in a main loop so that if IWDG is being reloaded, you know the main loop is running, which causes a good number of bugs to stall IWDG and reset the chip.

WWDG is a bit more restrictive, but has drawbacks as well.

"If you feel a post has answered your question, please click ""Accept as Solution""."
PHolt.1
PHolt.1Author
Senior
September 18, 2023

That is a good point! Thanks :grinning_face: I forgot that the watchdog "pulse" is actually a counter reload.