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.
Deep sleep power consumption increased after ESP-IDF update
-
floitsch_toit
- Posts: 43
- Joined: Wed Jun 29, 2022 4:25 pm
- Location: Aarhus, Denmark
- Contact:
-
floitsch_toit
- Posts: 43
- Joined: Wed Jun 29, 2022 4:25 pm
- Location: Aarhus, Denmark
- Contact:
Re: Deep sleep power consumption increased after ESP-IDF update
I forgot to mention that this is on an ESP32S3.
-
floitsch_toit
- Posts: 43
- Joined: Wed Jun 29, 2022 4:25 pm
- Location: Aarhus, Denmark
- Contact:
Re: Deep sleep power consumption increased after ESP-IDF update
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
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();
}
Who is online
Users browsing this forum: Amazon [Bot], Baidu [Spider], Bing [Bot], Semrush [Bot] and 4 guests