Skip to main content
MAlva
Associate
November 20, 2018
Question

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

  • November 20, 2018
  • 1 reply
  • 1127 views

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

    This topic has been closed for replies.

    1 reply

    waclawek.jan
    Super User
    November 20, 2018

    Consider using a timer interrupt.

    JW

    MAlva
    MAlvaAuthor
    Associate
    November 20, 2018

    will that reset the MCU though?