2009-10-05 07:41 AM
Sleep Mode
2011-05-17 04:24 AM
2011-05-17 04:24 AM
2011-05-17 04:24 AM
WWDG - You can simply disable this module WWDG_Enable(DISABLE), and enable it back after waking up
Wake on interrupt - If you have the interrupts enabled and the NVIC initialized for the interrupt channel, you should be able to wake on any interrupt. This is what I did (though I never got time to test it)Code:
SCB->SCR &= ~(SCB_SCR_SLEEPONEXIT | SCB_SCR_SLEEPDEEP);
SCB->SCR |= SCB_SCR_SLEEPONEXIT; __WFI();Might I advice privileged mode.. modification of M3 core SCB register needs it. good luck2011-05-17 04:24 AM
Actually i am using independent watchdog not the window watchdog. I will try your code in a moment i will reply if it works?
P.S. Watchdog problem is still unsolved.2011-05-17 04:24 AM
Clearly, independent watchdog is a security feature, so it MUST NOT be possible to block it because of LP mode. Use some periodic interrupt (RTC alarm, timers with long prescaler etc.) to wake up the system periodically and refresh the IWDG.