Page 1 of 1

Deep sleep power consumption increased after ESP-IDF update

Posted: Wed Jun 18, 2025 3:15 pm
by floitsch_toit
After upgrading the ESP-IDF from the v5.0 branch to v5.1 the power consumption of our devices in deep sleep went from ~20 µA to ~131 µA.

Does anyone have pointers on what has changed, or what we could investigate to find the reason for this change?

thanks.

Edit: it looks like adding an external trigger on GPIO1 is the reason. In the old ESP-IDF the voltage on the pin is 0V, on the new one it is 0.79V. Since that pin is connected to a pull-down resistor, that explains the additional power consumption.

I will look into external triggers now, but if anyone has an idea of what changed here, please let me know.

Re: Deep sleep power consumption increased after ESP-IDF update

Posted: Wed Jun 25, 2025 8:41 am
by floitsch_toit
I forgot to mention that this is on an ESP32S3.

Re: Deep sleep power consumption increased after ESP-IDF update

Posted: Wed Jun 25, 2025 12:48 pm
by floitsch_toit
I have narrowed it down to a regression between 5.1.1 and 5.1.6.

I filed an issue: https://github.com/espressif/esp-idf/issues/16192

For reference: the following program pulls pin 1 of an ESP32S3 up on 5.1.6, but doesn't on 5.1.1

Code: Select all

#include "esp_sleep.h"
#include "driver/gpio.h"

void app_main(void)
{
    // Set up ext1 wakeup: wake when any selected pin is HIGH.
    esp_sleep_enable_ext1_wakeup(1ULL << GPIO_NUM_1, ESP_EXT1_WAKEUP_ANY_HIGH);

    // Enter deep sleep.
    esp_deep_sleep_start();
}