Watchdog STM32F101
Posted: Tue Jul 19, 2016 2:27 pm
Don't think the watchdog is working.
PR and RLR registers dont seem to be written to....
Code: Select all
/* Unlock IWDG.*/
wdgp->wdg->KR = KR_KEY_WRITE;
/* Write configuration.*/
while (wdgp->wdg->SR != 0)
;
wdgp->wdg->PR = wdgp->config->pr;
wdgp->wdg->RLR = wdgp->config->rlr;
/* Start operations.*/
wdgp->wdg->KR = KR_KEY_RELOAD;
wdgp->wdg->KR = KR_KEY_ENABLE;
PR and RLR registers dont seem to be written to....