What is the time to wakeup SoC from hibernation?

User avatar
ESP_krzychb
Posts: 394
Joined: Sat Oct 01, 2016 9:05 am
Contact:

What is the time to wakeup SoC from hibernation?

Postby ESP_krzychb » Sun May 28, 2017 11:14 am

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

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

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

Postby WiFive » Sun May 28, 2017 4:31 pm

Probably loading and verifying flash. Try with wake stub and see what the difference is.

User avatar
ESP_krzychb
Posts: 394
Joined: Sat Oct 01, 2016 9:05 am
Contact:

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

Postby ESP_krzychb » Sun May 28, 2017 7:13 pm

Good point :idea:
The use case is documented by @igrr in https://gist.github.com/igrr/54f7fbe051 ... d7fbecfeab.
Thanks, @WiFive!

Who is online

Users browsing this forum: No registered users and 113 guests