Wake up after deep sleep

aleksboshnakov
Posts: 3
Joined: Wed Feb 19, 2020 7:33 am

Wake up after deep sleep

Postby aleksboshnakov » Wed Feb 19, 2020 7:44 am

Hi, I am new to esp32.
In the last two days I have tried to run different types of code and I have focused on how deep-sleep works that I can't understand. Is it normal that when the device wakes up it goes into the bootloader? Is it possible to avoid the bootloader and on wake up to resume the code from where it went in deep-sleep? I ask this because I notice that it takes about 300ms for the bootloader each time it wakes up and this is not good for the kind of purpose for which I am using esp32.

I await your news regarding the precise functioning of deep-sleep and wake up. Also because I could not find any information about this behavior.

Aleks.

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

Re: Wake up after deep sleep

Postby WiFive » Wed Feb 19, 2020 11:11 am

Only light sleep can resume

aleksboshnakov
Posts: 3
Joined: Wed Feb 19, 2020 7:33 am

Re: Wake up after deep sleep

Postby aleksboshnakov » Wed Feb 19, 2020 1:18 pm

After I tried light sleep I realized that it resumes the code from the point where the device goes to sleep.

Thx.

boarchuz
Posts: 205
Joined: Tue Aug 21, 2018 5:28 am

Re: Wake up after deep sleep

Postby boarchuz » Wed Feb 19, 2020 1:18 pm

If you're using IDF v4 you can try CONFIG_BOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP for significantly faster wakeup.

aleksboshnakov
Posts: 3
Joined: Wed Feb 19, 2020 7:33 am

Re: Wake up after deep sleep

Postby aleksboshnakov » Thu Feb 20, 2020 7:49 am

I can't understand then what the deep-sleep mode is for if every time the device wakes up it has to bootloader.

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

Re: Wake up after deep sleep

Postby WiFive » Fri Feb 21, 2020 2:01 am

aleksboshnakov wrote:
Thu Feb 20, 2020 7:49 am
I can't understand then what the deep-sleep mode is for if every time the device wakes up it has to bootloader.
To use the least current, you have to shut everything down. If you can sleep for long periods then you will happily trade the wakeup time for the power savings.

Who is online

Users browsing this forum: Baidu [Spider] and 68 guests