cancel
Showing results for 
Search instead for 
Did you mean: 

IWDG disable

john
Associate II
Posted on July 31, 2008 at 10:49

IWDG disable

4 REPLIES 4
john
Associate II
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
Associate II
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.

asterix
Associate II
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
Associate II
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.