Not able to read ESP32-C3 serial output
Posted: 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:
That succeeds but when I connect using PuTTY (at 115200 baud) I see only a single line, printed once, and nothing else:
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.
---
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);
}
Code: Select all
ESP-ROM:esp32c3-api1-20210207
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.