2023-05-29 01:03 AM
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,
AnMi
2023-06-27 06:26 AM
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:
Best Regards,
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.