Sleep Mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2009-10-05 7:41 AM
Sleep Mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4: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 luck- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4: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.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 4: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.
