- Notifications
You must be signed in to change notification settings - Fork7.8k
-
BoardESP32-C6FH4 Device DescriptionDev-board Hardware Configurationno hardware attached in this time Versionv3.1.0 IDE NameArduino IDE Operating SystemWin 11 Flash frequency80 MHz PSRAM enabledno Upload speed921600 DescriptionCannot get the device in correct light sleep mode, will get current >250uA instead of the published 35uA In deep sleep all is working as expected (<10uA). How the deep sleep sample must be modified? I've tried all sorts of things, but nothing has helped... Sketch/* _ _ ______ _____ _____ (_) | | ____| __ \_ _| _ __ ___ _____| | |__ | | | || | | '_ \| \ \/ / _ \ | __| | | | || | | |_) | |> < __/ | |____| |__| || |_ | .__/|_/_/\_\___|_|______|_____/_____| | | |_|www.pixeledi.eu | https://links.pixeledi.euESP32S3 XIAO DeepSleep | V1.0 | 03.2024https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/sleep_modes.html*/#include<Arduino.h>unsignedlong previousMillis = millis();int cnt =0;voidsetDeepSleep(){// esp_sleep_pd_config(ESP_PD_DOMAIN_RTC_PERIPH, ESP_PD_OPTION_OFF); Serial.println("Going to sleep zzZZZzz"); Serial.end();//ESP.deepSleep(20 * 1e6);esp_sleep_enable_timer_wakeup(1000*(uint64_t)4500);esp_light_sleep_start();// replaced deep sleep}voidsetup(){ Serial.begin(115200);}voidloop(){unsignedlong currentMillis =millis();if (currentMillis - previousMillis >= (1000 *1)) { previousMillis=currentMillis; cnt++; Serial.println(cnt); }if (cnt >10) { cnt =0;setDeepSleep(); }} Debug MessageOther Steps to ReproduceNo response I have checked existing issues, online documentation and the Troubleshooting Guide
|
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 13 comments
-
@michapr Can you please try latest actual Arduino core and if the behaviour is still there Arduino core 3.2.0-rc2? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Yes, it is the same for me with 3.3.0 |
BetaWas this translation helpful?Give feedback.
All reactions
-
You may need to addesp_sleep_pd_config(ESP_PD_DOMAIN_VDDSDIO, ESP_PD_OPTION_OFF). That may require a longer sleep time. If you can't guarantee that you will be in sleep for seconds (so that you can turn off the flashmem), then you won't be able to get to the lowest consumption levels. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Hi@michapr is this issue still valid considering the comments above? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Yes, it's still the same. I cannot useesp_sleep_pd_config(ESP_PD_DOMAIN_VDDSDIO, ESP_PD_OPTION_OFF) because need shorter sleep times. |
BetaWas this translation helpful?Give feedback.
All reactions
-
The code can't change how the power domains work. Can you please explain what would be the solution you are looking for from this issue? |
BetaWas this translation helpful?Give feedback.
All reactions
-
I understand that there may be no other solution for this chip, but I was somewhat surprised because the data sheet specified much better values for light sleep mode (without restrictions). So I think there maybe no solution - should look for another chip... |
BetaWas this translation helpful?Give feedback.
All reactions
-
How do you measure the current? Still it is easy to overlook some unintended leak currents like from voltage regulator, pins pulled up or down, USB to serial adapters, etc. |
BetaWas this translation helpful?Give feedback.
All reactions
-
I'm using for all my work the Nordic Power Profiler Kit II.
I don't think so, because the deep sleep current is <10uA, as expected. |
BetaWas this translation helpful?Give feedback.
All reactions
-
OK, so we have established you have the proper tools ;) (Also love my PPK-II :) ) Other unexpected power consumers can be for example if some internal device is still active which keeps the ABP frequency active. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Does theIDF example give you the expected results? |
BetaWas this translation helpful?Give feedback.
All reactions
-
But in this case the deep sleep current would be >10uA ... (same sketch, only other mode), right?
Yes, if I remember right tried this "official" Light Sleep Example too - but made then all final tests with Arduino IDE (see sketch above) Somebody know an ESP32 board with a real low light sleeping (and deep sleeping) current? |
BetaWas this translation helpful?Give feedback.
All reactions
-
As this issue became more of a discussion type. I have transferred it to the discussion. You can still comment on the new discussion type and have a follow-up. Kind regards. |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #10903 on October 30, 2025 02:45.