2018-06-03 10:16 PM
Hi All,
I am working on the project Bootloader and i am using the independent watchdog IWDG in my project with stm32F413VH controller.The library i am using is the HAL library. Now i am facing some problem after jumping to the Application from the Bootloader. I kept the Watchdog to refresh afters 2s. Now the problem is if i enable the Watchdog, the system jumps to the Application and after 2s resets back to the Bootloader. This continues to happen every 2s. So i need to disable the Watchdog before jumping to Application. Please can anyone help me how to disable the watchdog(IWDG) in stm32F413VH controller.
2018-06-04 02:12 AM
Hello
ytgautham
,Once enabled, the IWDG it can not disabled unless it goes again to reset if enabled by software and not by Hardware.
You may refer to the reference manual RM0430, in Section 3 Independent watchdog (IWDG):
Independent watchdog (IWDG): the IWDG is started by writing to its Key register or by hardware option. Once started it cannot be stopped except by a reset.
With Regards,
Imen
2018-06-04 02:32 AM
Dear
ytgautham
,as explaned by
DAHMEN.IMEN
, IWDG cannot be stopped once it has been started, except by reset. In your particular example, you just have to make sure that your application resets IWDG aswell.If you would be able to disable IWDG and your application crashes for some reason, your MCU would go to unknown state and you would need hardware reset to start over.
Best regards,
Tilen
2018-06-04 03:48 AM
I've posted examples on the forum where I use a variable in RAM and reset, and have the Reset_Handler in the loader immediately jump to the application.