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