Wake up from deep sleep problem

marinacabezon
Posts: 6
Joined: Tue Jun 09, 2020 8:10 am

Wake up from deep sleep problem

Postby marinacabezon » Wed Jan 18, 2023 12:24 pm

Hi,

ENVIRONMENT:
espressif32@3.3.2 -> framework-espidf @ 3.40300.0 (4.3.0)
ESPTOOL -> tool-esptoolpy @ 1.30100.210531 (3.1.0)

DESCRIPTION:
In some wake ups from deep sleep (whatever the wakeup source programmed), the ESP32 wakes up but it doesn't run the function main() of the code and the micro keeps awake forever (consuming 23mA). When it wakes up, I can't see through UART bootlader info.

I can't take out the ESP32 from that state. I tried configuring the panic functionality of the task watchdog but it doesn't boot the micro and I don't know where the ESP32 is waking up.

I noticed that this problem happens if the ESP32 keeps in deep sleep for more than 2 minutes and you wake it up. Before enter deep sleep I run this configuration:

esp_sleep_pd_config(ESP_PD_DOMAIN_XTAL, ESP_PD_OPTION_OFF);
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_FAST_MEM, ESP_PD_OPTION_ON);
esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_SLOW_MEM, ESP_PD_OPTION_ON);

ghost07
Posts: 36
Joined: Mon Oct 03, 2022 11:47 am

Re: Wake up from deep sleep problem

Postby ghost07 » Wed Jan 18, 2023 6:39 pm

Maybe it somehow gets into firmware download mode?
Can you check what level is on GPIO0 after 2 minutes of sleep?

You can check pins 12 and 15 as well.
https://docs.espressif.com/projects/esp ... ction.html

marinacabezon
Posts: 6
Joined: Tue Jun 09, 2020 8:10 am

Re: Wake up from deep sleep problem

Postby marinacabezon » Thu Jan 19, 2023 9:30 am

I check GPIO 0, GPIO 12 and GPIO15 and they mantein their correct state in deep sleep forever.

I enable the boot messages printed by the ROM bootloader and when the ESP32 wakes up in that strange state I show these messages:

[1/19 10:09:06.9]rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[1/19 10:09:06.9]flash read err, 1000
[1/19 10:09:06.9]ets_main.c 371
[1/19 10:09:07.6]ets Jun 8 2016 00:22:57
[1/19 10:09:07.6]
[1/19 10:09:07.6]rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[1/19 10:09:07.6]flash read err, 1000
[1/19 10:09:07.6]ets_main.c 371
[1/19 10:09:08.2]ets Jun 8 2016 00:22:57
[1/19 10:09:08.2]
[1/19 10:09:08.2]rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[1/19 10:09:08.2]flash read err, 1000
[1/19 10:09:08.2]ets_main.c 371
[1/19 10:09:08.9]ets Jun 8 2016 00:22:57
[1/19 10:09:08.9]
[1/19 10:09:08.9]rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[1/19 10:09:08.9]flash read err, 1000
[1/19 10:09:08.9]ets_main.c 371
[1/19 10:09:09.5]ets Jun 8 2016 00:22:57
[

Who is online

Users browsing this forum: ESP_Penguin_Helper, mjgciltd and 213 guests