cancel
Showing results for 
Search instead for 
Did you mean: 

How to increment the Independent and Window Watchdog's maximum timeout value?

MAlva
Associate

I am using an STM32F411 MCU and I'm trying to set up a watchdog that interrupts, executes my Contactor_Off function, and does an MCU reset if the software doesn't reload the Watchdog counter after 4 minutes, or reloads it way too fast. I thought of using the Window WDG feature to interrupt my program, execute my function, and reset, but the maximum possible timeout is 41.94304 ms assuming the APB1 bus is running at 50Mhz. I also wanted to have the Independent watchdog as a back-up for the Window Watchdog, which also has a maximum timeout value of .5461333 minutes. How can I use both, to make sure that the reset only occurs after 4 minutes of no response, and that before reset my function 'Contactor_Off' is executed? Below is my starter code.

0690X000006CP4aQAG.png

2 REPLIES 2

Consider using a timer interrupt.

JW

will that reset the MCU though?