Skip to main content
john
Associate III
July 31, 2008
Question

IWDG disable

  • July 31, 2008
  • 4 replies
  • 2921 views
Posted on July 31, 2008 at 10:49

IWDG disable

    This topic has been closed for replies.

    4 replies

    john
    johnAuthor
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:40

    Hi,

    The ST libraries and manual tell me how how to enable the IWDG :-

    void IWDG_Enable(void)

    Writing the key value CCCCh starts the watchdog.

    BUT - how do I then disable the watch dog at some later point, after

    it has been enabled ?

    Thanks,

    John.

    john
    johnAuthor
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:40

    Thanks Magigimix.

    And another thing :-

    once the prescaler/reload values have been set, can they be changed

    again ? ie. in the code, without doing a reset.

    Thanks,

    John.

    asterix
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:40

    Hi John,

    I Think that once enabled the watchdog can not disabled unless it goes again to reset if enabled by software and not by Hardware ( Option bytes). I can see a note on WWDG :

    ''The watchdog is always disabled after a reset. It is enabled by setting the WDGA bit in the WWDG_CR register, then it cannot be disabled again except by a reset.''

    This is often used in all micro-controllers and is a standard behavior in my understanding.

    Salutations, Magigimix.

    john
    johnAuthor
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 12:40

    And...

    stopping the IWDG while in a break point ?

    I'm setting DBG_IWDG_STOP in DBGMCU_CR, but this does not seam to

    do it.

    Is there anything else I need to do ?

    Anyone else had success with this ?

    Thanks,

    John.