Skip to content

ESP32-C3 Arduino IDE Upload ERROR when USB CDC on, No serial data received Error occurs  #9646

Closed
@SooDragon

Description

@SooDragon

Board

ESP32 C3 dev board

Device Description

GEEKBLE Mini-ESP32@2x

Hardware Configuration

ESP32-C3FH4
USB_N to GPIO18
USB_P to GPIO19
Schematic.pdf

Version

latest master (checkout manually)

IDE Name

Arduino IDE 2.3.2

Operating System

MAC OS Sonoma 14.4.1

Flash frequency

80MHz

PSRAM enabled

no

Upload speed

921600

Description

After Updated to 2.0.16, Error occurs and says
"
A fatal error occurred: No serial data received.
Failed uploading: uploading error: exit status 2
"
SCR-20240517-nbot

It happens when I activate USB CDC On Boot function.
if I turn it Off, it is fine
I also tried Upload Speed to 115200, but it also didn't work.
I tried remove Arduino IDE and Arduino15 folder and re-installed, but it didn't work either

These are the scenarios worked for me

  1. Flash dummy firmware through VS Code, Espressif IDF extension
    it will allow Arduino IDE to flash code for once.
  2. Or when I installed Version 2.0.14, It worked just fine.
    SCR-20240517-ndok

Sketch

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

void loop() {
  ;
}

Debug Message

Launching gdb-server: /Users/soodragon/Library/Arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20230921/bin/openocd -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s /private/var/folders/m3/ld9yhl7169918_sky0gbzdc40000gn/T/.arduinoIDE-unsaved2024417-6673-1v5zpmg.wsluj/sketch_may17a -f "/Applications/Arduino IDE.app/Contents/Resources/app/plugins/cortex-debug/extension/support/openocd-helpers.tcl" -f board/esp32c3-builtin.cfg -d3
    Please check TERMINAL tab (gdb-server) for output from /Users/soodragon/Library/Arduino15/packages/esp32/tools/openocd-esp32/v0.12.0-esp32-20230921/bin/openocd
Finished reading symbols from objdump: Time: 6 ms
Finished reading symbols from nm: Time: 6 ms
Reading symbols from /private/var/folders/m3/ld9yhl7169918_sky0gbzdc40000gn/T/arduino/sketches/C7AE222C6875CF7EE355EEE9DBCA5A6D/sketch_may17a.ino.elf...
GNU gdb (esp-gdb) 11.2_20220823
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "--host=aarch64-apple-darwin21.1 --target=riscv32-esp-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
    .
For help, type "help".
Type "apropos word" to search for commands related to "word".
Warning: 'set target-async', an alias for the command 'set mi-async', is deprecated.
Use 'set mi-async'.
0x40001de6 in ?? ()
Program stopped, probably due to a reset and/or halt issued by debugger
JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)
[esp32c3] Reset cause (3) - (Software core reset)
Hardware assisted breakpoint 1 at 0x42000020: file /private/var/folders/m3/ld9yhl7169918_sky0gbzdc40000gn/T/.arduinoIDE-unsaved2024417-6673-1v5zpmg.wsluj/sketch_may17a/sketch_may17a.ino, line 2.

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

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions