I’m trying to get Serial communication working over the ESP32-C3’s built in JTAG/CDC interface but can’t seem to get it working. I’m just using a basic program to print “Hello World” to the serial monitor repeatedy. I can upload the code without issues, but the serial print statements in my code are not showing up in the serial monitor.
When I upload the same code from Arduino IDE after setting the “USB CDC on Boot” option to “Enabled”, everything works perfectly. However, I can’t figure out how to enable this setting in platformio. Below is the platformio.ini file that I’ve been using, and that seems like it should work based on other posts I’ve read here:
platform = espressif32
board = esp32-c3-devkitm-1
framework = arduino
upload_port = COM6
monitor_port = COM6
monitor_speed = 9600
What do I need to add/change in my config file to get serial output to work properly? If it’s possible in Arduino IDE, I’m sure it’s possible using platformio, I’m just not sure what to do at this point. Any help would be greatly appreciated. Thanks.