Not able to read ESP32-C3 serial output

User avatar
ExtrasensoryNoob
Posts: 9
Joined: Mon Mar 21, 2022 1:25 pm

Not able to read ESP32-C3 serial output

Postby ExtrasensoryNoob » Mon Mar 27, 2023 3:25 am

Edit: Turns out if I hold BOOT, press and release RESET, upload new code, then press RESET, my code does in fact run. Afterward I can upload without any of that and it reboots and runs my code. Why must such a gotcha exist?

---

I've got a Xiao ESP32-C3. I plug in the built-in USB-C and use arduino-cli (FQBN esp32:esp32:XIAO_ESP32C3) to compile and upload:

Code: Select all

void setup () {
	Serial.begin(115200);
}
void loop () {
	Serial.println("hello!");
	delay(1000);
}
That succeeds but when I connect using PuTTY (at 115200 baud) I see only a single line, printed once, and nothing else:

Code: Select all

ESP-ROM:esp32c3-api1-20210207
Shouldn't this be followed by some boot information, then my script execution? What can I do from here? I just need serial output during development.

I tried adding -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MODE=1 but nothing changed. I tried different ESP32-C3s and got the same.

Who is online

Users browsing this forum: No registered users and 73 guests