Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ESP32-C6 - high light sleep current #10903

Copy link
Copy link
Open
@michapr

Description

@michapr
Issue body actions

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Chip: ESP32-C6Issue is related to support of ESP32-C6 ChipIssue is related to support of ESP32-C6 ChipStatus: Awaiting Responseawaiting a response from the authorawaiting a response from the author

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.