Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

JosuGZ
Posts: 48
Joined: Tue Jan 14, 2020 9:47 am

Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Postby JosuGZ » Fri Dec 11, 2020 5:57 pm

I'm doing some tests and I've noticed that by calling esp_sleep_enable_gpio_wakeup() my power consumption rises about 1.5mA, regardless of whether gpio_wakeup_enable has been called.

Is this expected?

JosuGZ
Posts: 48
Joined: Tue Jan 14, 2020 9:47 am

Re: Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Postby JosuGZ » Thu Jan 14, 2021 5:00 pm

Hmm, this only happens if "adc_power_on();" has been called. "adc_power_on();" by itself does not cause it, its the combination... weird.


JosuGZ
Posts: 48
Joined: Tue Jan 14, 2020 9:47 am

Re: Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Postby JosuGZ » Thu Jan 14, 2021 11:50 pm


I don't see where those links explain why this happens:

Code: Select all

adc_power_on only:           +0mA
gpio_wakeup only:            +0.4mA
adc_power_on + gpio_wakeup:  +1.5mA

chegewara
Posts: 2210
Joined: Wed Jun 14, 2017 9:00 pm

Re: Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Postby chegewara » Fri Jan 15, 2021 7:56 pm

The pins are grouped into four power domains: VDDA (analog power supply), VDD3P3_RTC
(RTC power supply), VDD3P3_CPU (power supply of digital IOs and CPU cores), VDD_SDIO
(power supply of SDIO IOs). VDD_SDIO is the output of the internal SDIO-LDO. The voltage of
SDIO-LDO can be configured at 1.8 V or be the same as that of VDD3P3_RTC. The strapping
pin and eFuse bits determine the default voltage of the SDIO-LDO. Software can change the
voltage of the SDIO-LDO by configuring register bits

JosuGZ
Posts: 48
Joined: Tue Jan 14, 2020 9:47 am

Re: Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Postby JosuGZ » Mon Jan 18, 2021 10:06 am

I don't see where that explains why 0 + 0.4 = 1.5.

JosuGZ
Posts: 48
Joined: Tue Jan 14, 2020 9:47 am

Re: Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Postby JosuGZ » Thu Jan 28, 2021 12:10 pm

Enabling "CONFIG_ADC_FORCE_XPD_FSM" on make menuconfig fixes this problem.

I don't understand why having this disabled only rises my power consumption when ADC is on *and* wake from gpio is on though.

Who is online

Users browsing this forum: Bing [Bot] and 100 guests