The hardware watchdogs is set through an option byte modification done by software and right afterwards the WWDG and IWDG init functions are called as well as the refresh API, called periodically.
If I change my code to use the SW WWDG and IWDG then the program works perfectly. And in case I do not refresh them the corresponding reset is generated.
Is there something I am missing to correctly use the Hardware watchdogs?
Thank you in advance,
Hello AnMi @AMija.1,
As you said, the independent watchdog hardware is enabled by the device’s option bytes.
Once enabled through OB, the watchdog is automatically enabled at power-on, and generates a reset unless the IWDG key register (IWDG_KR) is written by the software before the counter reaches end of count or if the downcounter is reloaded inside the window.
Here are some investigation possibilities:
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.