Page 1 of 1

What is the time to wakeup SoC from hibernation?

Posted: Sun May 28, 2017 11:14 am
by ESP_krzychb
Hello everybody :D

Experimenting with ULP application discussed in https://esp32.com/viewtopic.php?f=13&t=1966#p9309 I have noted it takes about 100ms to wake up SoC from hibernation.

1. Is it reasonable time to wakeup the chip or maybe I configured something incorrectly?
2. What are the time consuming tasks done by chip during this period of time?

Below is an example measurement:
Image
1. Red trace - high spikes represent SoC up and running
2. Violet trace - high spikes represent ULP up and running. After eight cycles of being up, ULP is disabled and SoC is woken up. Period between two green vertical cursors represent time to wake up SoC. In this example it is about 98ms.

This test was done with Wi-Fi disabled in menuconfig. If I enable Wi-Fi, then wakeup time increases to about 176ms.

More information and sample code - https://github.com/krzychb/ulp-loop

Re: What is the time to wakeup SoC from hibernation?

Posted: Sun May 28, 2017 4:31 pm
by WiFive
Probably loading and verifying flash. Try with wake stub and see what the difference is.

Re: What is the time to wakeup SoC from hibernation?

Posted: Sun May 28, 2017 7:13 pm
by ESP_krzychb
Good point :idea:
The use case is documented by @igrr in https://gist.github.com/igrr/54f7fbe051 ... d7fbecfeab.
Thanks, @WiFive!