Page 1 of 1

Question on wake by ULP from deep sleep

Posted: Wed Oct 23, 2019 11:41 pm
by wevets
I've rooted around in sleep_modes.c and other places, and it looks like a system wake from ULP causes an unconditional reset of the system, with control always and only going through app_main (with no memory surviving except RTC memory and NVS memory. Is this correct? Is there another way to wake from deep sleep on a ULP wake instruction without a system reset? If so, would you point me to docs or an example?

Re: Question on wake by ULP from deep sleep

Posted: Thu Oct 24, 2019 12:02 am
by WiFive
Any wake from deep sleep is a reset because deep sleep is basically a shutdown. Wake stubs can be useful for some things. Light sleep can resume.

Re: Question on wake by ULP from deep sleep

Posted: Thu Oct 24, 2019 2:44 am
by wevets
Thanks for the quick reply. It'll save me some time.