Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-C6 - high light sleep current #10903

Open
1 task done
michapr opened this issue Jan 26, 2025 · 1 comment
Open
1 task done

ESP32-C6 - high light sleep current #10903

michapr opened this issue Jan 26, 2025 · 1 comment
Labels
Chip: ESP32-C6 Issue is related to support of ESP32-C6 Chip Status: Awaiting Response awaiting a response from the author

Comments

@michapr
Copy link

michapr commented Jan 26, 2025

Board

ESP32-C6FH4

Device Description

Dev-board

Hardware Configuration

no hardware attached in this time

Version

v3.1.0

IDE Name

Arduino IDE

Operating System

Win 11

Flash frequency

80 MHz

PSRAM enabled

no

Upload speed

921600

Description

Cannot 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.eu
ESP32S3 XIAO DeepSleep | V1.0 | 03.2024

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/sleep_modes.html
*/
#include <Arduino.h>

unsigned long previousMillis = millis();
int cnt = 0;

void setDeepSleep()
{
//  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
}

void setup()
{
  Serial.begin(115200);
}
void loop()
{

  unsigned long currentMillis = millis();
  if (currentMillis - previousMillis >= (1000 * 1))
  {
    previousMillis=currentMillis;
    cnt++;
    Serial.println(cnt);
  }

  if (cnt > 10)
  {
    cnt = 0;
    setDeepSleep();
  }
}

Debug Message

no debug

Other Steps to Reproduce

No response

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@michapr michapr added the Status: Awaiting triage Issue is waiting for triage label Jan 26, 2025
@Jason2866
Copy link
Collaborator

@michapr Can you please try latest actual Arduino core and if the behaviour is still there Arduino core 3.2.0-rc2?

@Jason2866 Jason2866 added Chip: ESP32-C6 Issue is related to support of ESP32-C6 Chip Status: Awaiting Response awaiting a response from the author and removed Status: Awaiting triage Issue is waiting for triage labels Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Chip: ESP32-C6 Issue is related to support of ESP32-C6 Chip Status: Awaiting Response awaiting a response from the author
Projects
None yet
Development

No branches or pull requests

2 participants