Reset in light sleep

Posts: 25
Joined: Thu Mar 22, 2018 5:55 pm

Reset in light sleep

Postby peterglen » Sat Apr 10, 2021 12:29 am

I have code that puts the ESP32 to light sleep with a timer (10s) and wakes it up. The code works as intended on the ESP32-WROOM32D, but it fails in ESP-WROOM32 (older, no D)

The failure appears to be that the (no D) chip does not go to sleep, and the RTC timer {WD} resets the system; [Confirmed it with an Amp Meter]

configsip: 0, SPIWP:0xee
mode:DIO, clock div:1
entry 0x40080600
I (272) cpu_start: Pro cpu up.
I (272) cpu_start: Starting app cpu, entry point is 0x40081058
0x40081058: call_start_cpu1 at /home/peterglen/esp/esp-idf.4.3/components/esp_system/port/cpu_start.c:124

I tried to disable the RTC timer, no change; but, when I extend the RTC timer's wachdog interval, it extends the reboot interval.

The sleep code does not contain anything special; just calling the API-s as normal.

gl_light_milli is set to 10
esp_err_t errw = esp_sleep_enable_timer_wakeup(gl_light_milli * 1000);
// wake code ... just a printf etc

This works well on the WROOM32D / DevKitC V4; does not work on the WROOM32 / DevKitC V2;

I am curious if there be an insight why this is happening, and solution to this. Thank you;

Peter Glen

Posts: 25
Joined: Thu Mar 22, 2018 5:55 pm

Re: Reset in light sleep

Postby peterglen » Mon Apr 12, 2021 3:53 pm

More info:

IDF version:

ESP-IDF: v4.3-dev-1720-g494a124d9

I upgraded from a 3.x , same error on both IDF versions.

Posts: 3199
Joined: Tue Dec 01, 2015 7:35 am

Re: Reset in light sleep

Postby WiFive » Sat May 01, 2021 7:07 am

Do you know if the older chip is rev0?

Who is online

Users browsing this forum: No registered users and 6 guests