Posted on May 17, 2011 at 12:40Hi, 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.
Posted on May 17, 2011 at 12:40Thanks 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.
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.
Posted on May 17, 2011 at 12:40And... 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.