Skip to content

ESP32-S3 native USB CDC stops working after light sleep #6581

Closed
@Miraculix200

Description

@Miraculix200

Board

ESP32-S3-WROOM-1 N8R2

Device Description

Custom PCB https://oshwlab.com/Miraculix200/esp32-s3-mini_copy

Hardware Configuration

GPIO 19 and 20 are connected to USB connector

Version

2.0.3-RC1

IDE Name

Arduino IDE

Operating System

Windows 10

Flash frequency

80MHz

PSRAM enabled

yes

Upload speed

115200

Description

When using the Arduino IDE serial monitor or Putty connected to USB (with Hardware CDC and JTAG enabled) at 115200 baud, ESP_LOGD output will stop after light sleep. Doing ESP.restart() will not enable the output again. Only after a hard reset the ESP32-S3 outputs data over USB again.

Sketch

#include "esp32s3/rom/rtc.h"
#include "esp_log.h"

void setup()
{
    while (millis() < 5000)
        delay(100);

    ESP_LOGD("abc", "hello");
    delay(1000);

    for (int i = 0; i < 10; i++) {
        esp_sleep_enable_timer_wakeup(600 * 1000);
        esp_light_sleep_start();
        delay(1);
    }
}

void loop()
{
    ESP_LOGD("abc", "hello");
    delay(1000);
}

Debug Message

None

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

Labels

Area: Peripherals APIRelates to peripheral's APIs.Chip: ESP32-C3Issue is related to support of ESP32-C3 ChipChip: ESP32-S3Issue is related to support of ESP32-S3 ChipStatus: Test neededIssue needs testing

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions