ESP32-C3 Serial.available() doesn't work over native USB - print, printf works fine
Posted: Wed Feb 01, 2023 10:33 pm
This is a weird one.
I am using USB serial emulation to debug some code. So the native, built in USB controller with no USB to serial chip. I can program the ESP no problem, and Serial.print as well as printf work perfectly.
I have tried using the Arduino serial console, Teraterm and Putty (the latter I can disable flow control). The relevant code fragment is
if( Serial.available() > 0 ) {
input = Serial.read();
I never get a NZ value for Serial.available. I have even tried the Arduino example to the same effect.
I downloaded and installed ESP-IDF, which I expect to install the USB driver, but device manager says it is using the Microsoft driver date 2006, version 10.0.22621.160. Updating the driver has no effect.
Any suggestions?
Thanks!
I am using USB serial emulation to debug some code. So the native, built in USB controller with no USB to serial chip. I can program the ESP no problem, and Serial.print as well as printf work perfectly.
I have tried using the Arduino serial console, Teraterm and Putty (the latter I can disable flow control). The relevant code fragment is
if( Serial.available() > 0 ) {
input = Serial.read();
I never get a NZ value for Serial.available. I have even tried the Arduino example to the same effect.
I downloaded and installed ESP-IDF, which I expect to install the USB driver, but device manager says it is using the Microsoft driver date 2006, version 10.0.22621.160. Updating the driver has no effect.
Any suggestions?
Thanks!