Skip to main content
philipgillespie
Associate
November 30, 2010
Question

Independant Watchdog Timer

  • November 30, 2010
  • 2 replies
  • 654 views
Posted on November 30, 2010 at 11:13

Independant Watchdog Timer

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    May 17, 2011
    Posted on May 17, 2011 at 14:16

    Kick it in areas which will not be executed if the system locks up or dead locks.

    Do not put the kicker in an interrupt that gets called even when the rest of the system is dead. If you do it under interrupt, qualify the kicking by looking at and clearing other signs-of-life indications you have from multiple sub-systems.

    When the system restarts you can query the reset status, and I'm sure it's covered in the TRM and example code.

      /* Check if the system has resumed from IWDG reset */

      if (RCC_GetFlagStatus(RCC_FLAG_IWDGRST) != RESET)

      {/* IWDGRST flag set */

      }

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    lowpowermcu
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 14:16

    Hi,

    I remember that there is an example provided within ST library.

    Check it first then call back :)

    Herzlich,

    MCU Lüfter