USBSerial not Recognized - Custom ESP32-S3 board

Hello,

I am trying to utilize the USBSerial command on a custom ESP32-S3 board that I made however my ArduinoIDE is not recognizing the existence of USBSerial. I've tested previous version of the esp32 library, but when I go back to far I get some driver errors. I am still able to upload to the board and control other peripherals, but I can't communicate via the Serial Monitor

System Information
MacOS (Silicone M3)
Arduino IDE 2.3.4
esp32 library 3.1.1 -> 2.0.9

Code:

#include <FastLED.h>

#define LED_PIN 2
#define NUM_LEDS 1
#define AIN1 6
#define AIN2 7
#define BIN1 8
#define BIN2 9
CRGB led[NUM_LEDS];

void setup() {
  delay(1000);
  
  USBSerial.begin(9600);

}

void loop() {


}

Error Message:

/Users/trhussain/Documents/Arduino/sketch_jan11a/sketch_jan11a.ino: In function 'void setup()':
/Users/trhussain/Documents/Arduino/sketch_jan11a/sketch_jan11a.ino:15:3: error: 'USBSerial' was not declared in this scope; did you mean 'Serial'?
   15 |   USBSerial.begin(9600);
      |   ^~~~~~~~~
      |   Serial

exit status 1

Compilation error: 'USBSerial' was not declared in this scope; did you mean 'Serial'? 

Schematic files (pretty sure its nothing with this, I can control the board peripherals fine, but added for posterity sake)

ArduinoIDE Configuration

Let me know if any additional information is required, thanks!

I don't understand what your issue is, the error msg tells you the USBSerial library is missing or you are using the wrong board perhaps, or did you actually mean Serial?

No I meant USBSerial, its a way to use the USB as a serial interface so you don't need the FTDI converter (to my understanding)

Here is the USBSerial.ino file from espressif

I use Serial all the time with the USB, just try it, change USBSerial to Serial.

Here is a discussion thread that seems to have a similar issue with mine(?)

Serial with USB doesnt work for me because (I believe can be wrong) since most boards have a built in FTDI programmer into them, this is a custom board so I need to use USBSerial

SOLVED:

I change by ArduinoIDE Settings to the following

Finally, yes just use the Serial port that happens to be connected via USB. Perfectly NORMAL.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.