Page 1 of 1

Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Posted: Fri Dec 11, 2020 5:57 pm
by JosuGZ
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?

Re: Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Posted: Thu Jan 14, 2021 5:00 pm
by JosuGZ
Hmm, this only happens if "adc_power_on();" has been called. "adc_power_on();" by itself does not cause it, its the combination... weird.

Re: Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Posted: Thu Jan 14, 2021 5:49 pm
by chegewara

Re: Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Posted: Thu Jan 14, 2021 11:50 pm
by JosuGZ

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

Re: Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Posted: Fri Jan 15, 2021 7:56 pm
by chegewara
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

Re: Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Posted: Mon Jan 18, 2021 10:06 am
by JosuGZ
I don't see where that explains why 0 + 0.4 = 1.5.

Re: Calling esp_sleep_enable_gpio_wakeup rises power comsumption about 1.5mA

Posted: Thu Jan 28, 2021 12:10 pm
by JosuGZ
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.