-
Couldn't load subscription status.
- Fork 7.7k
-
Hi,
I have a custom development board with a ESP32-C3 and a USB connector directly connected to pins 18 & 19.
The default UART pins are used for another purpose.
I have a VSCode / PlatformIO / Arduino project.
Uploading works fine.
But how do I get the console output?
Serial.begin(460800);
Serial.println("hello world");
Doesn't return anything ...
Thanks
Beta Was this translation helpful? Give feedback.
All reactions
For those with a esp32-c3-devkitm-1 board, or with a custom board, this does the trick:
board = esp32-c3-devkitm-1
monitor_speed = 460800
build_flags =
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
Replies: 2 comments 8 replies
-
You need to enable CDC On Boot for Serial to be mapped to the USB port
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you,
And how exactly do I do that on my VSCode / PlatformIO / Arduino project?
I have tried many variations of setting build flags in my platformio.ini file, but nothing seems to work.
Beta Was this translation helpful? Give feedback.
All reactions
-
@Jason2866 do you know what flag needs to be added to PIO?
Beta Was this translation helpful? Give feedback.
All reactions
-
This platformio boards.json should work https://github.com/platformio/platform-espressif32/blob/develop/boards/adafruit_qtpy_esp32c3.json since it is a board which uses CDC too
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you
Beta Was this translation helpful? Give feedback.
All reactions
-
For those with a esp32-c3-devkitm-1 board, or with a custom board, this does the trick:
board = esp32-c3-devkitm-1
monitor_speed = 460800
build_flags =
-D ARDUINO_USB_MODE=1
-D ARDUINO_USB_CDC_ON_BOOT=1
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 9 -
❤️ 7
-
This worked a treat with ESP32-C3 Super Mini just arrived from AliExpress. @Zambiorix
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 2
-
Fix confirmed for ESP32-C3 Super Mini from Aliexpress ✔️
Beta Was this translation helpful? Give feedback.
All reactions
-
Same here. Bang!
Beta Was this translation helpful? Give feedback.
All reactions
-
Worked for ESP32-C3-Zero-M by Waveshare 25532. THANK YOU!!!
Beta Was this translation helpful? Give feedback.