I am trying to upload a simple blinky code to ESP32-S3-DevKitC-1 and view the serial monitor.
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
Serial.begin(115200);
Serial.println("Start blinky");
}
void loop() {
ledON();
delay(200);
ledOFF();
delay(200);
}
void ledON() {
Serial.println("LED ON");
digitalWrite(LED_BUILTIN, LOW);
}
void ledOFF() {
Serial.println("LED OFF");
digitalWrite(LED_BUILTIN, HIGH);
}
I am successful in compiling and uploading via the Arduino IDE 1.8.13 and viewing the serial monitor with the following settings with USB CDC on Boot Enabled: Dropbox - File Deleted
With arduino-cli
I can also compile and upload successfully as the blinky LED can be seen, but I cannot view the serial monitor. The serial monitor is blank. I wonder if I should add certain flags or arguments to the compile command.
arduino-cli compile --fqbn esp32:esp32:esp32s3 ./
I suspect it's something to do with the extra flags for USB.
Thanks!