Question on wake by ULP from deep sleep

wevets
Posts: 112
Joined: Sat Mar 09, 2019 2:56 am

Question on wake by ULP from deep sleep

Postby wevets » Wed Oct 23, 2019 11:41 pm

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?

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Question on wake by ULP from deep sleep

Postby WiFive » Thu Oct 24, 2019 12:02 am

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.

wevets
Posts: 112
Joined: Sat Mar 09, 2019 2:56 am

Re: Question on wake by ULP from deep sleep

Postby wevets » Thu Oct 24, 2019 2:44 am

Thanks for the quick reply. It'll save me some time.

Who is online

Users browsing this forum: bushpulbek and 134 guests