Page 1 of 1

Deepsleep wakeup delay until wakeup stub

Posted: Wed Dec 19, 2018 4:21 pm
by persan666
What would be the expected time duration when wake up from deepsleep until execution of wake stub?

I am setting a GPIO in the wake stub function and measure the time with a oscilloscope.

I experiencing approximately 700ms until the wake stub get executed. this is around 200ms faster than setting the GPIO in the application.

The documentation says that the wake stub will be called before any initialization, bootloader or app execution.

I can see when I analyzing the pin SCK/CLK (Chip pin 20 connected to internal flash) that a lot of activity is beeing made, probably loading of application is done before wake stub gets called.

My goal is to have a GPIO to start a power source switching circuit immediately when the ESP wakes up before the voltage drops in my supercap. And 700ms is too long:(


Chip used: ESP-WROOM-32D

Re: Deepsleep wakeup delay until wakeup stub

Posted: Mon Jan 07, 2019 11:54 am
by persan666
Anyone? Please!

Re: Deepsleep wakeup delay until wakeup stub

Posted: Fri Jan 18, 2019 10:12 am
by persan666
Problem solved! I was using a incorrect way to set the gpio in the wakeup stub. Now I see a delay of only 1ms!