Install the ESP32 USB driver (Windows and Mac)

The ESP32-WROOM-32 chip has no USB connection of its own. A DevKit has a small USB-to-serial chip next to the USB connector. This chip changes USB data into serial (UART) data for the ESP32. Your computer needs a driver for this chip. Without the driver, no port shows in the Arduino IDE or in PlatformIO.

Try this first: Connect the board and look for a new port. Windows 10/11 and new macOS versions often have the driver already. Install a driver only if no port shows.

Identify the USB-to-serial chip

ChipMakerText on the chipWindows name (Device Manager)macOS port
CP2102 / CP2104Silicon LabsSILABS CP2102Silicon Labs CP210x USB to UART Bridge (COMx)cu.usbserial-XXXX or cu.SLAB_USBtoUART
CH340 (CH340C, CH340G)WCHCH340CUSB-SERIAL CH340 (COMx)cu.usbserial-XXXX or cu.wchusbserialXXXX
CH9102 (CH9102F, CH343)WCHCH9102FUSB-Enhanced-SERIAL CH9102 (COMx)cu.usbserial-XXXX or cu.wchusbserialXXXX

Read the chip

Find the small chip near the USB connector. Use a magnifier or the camera on your phone. Read the text on the top of the chip. The seller page for your board often gives the chip name too.

Windows

  1. Open Device Manager.Right-click the Start button. Select Device Manager.
  2. Expand Ports (COM & LPT).Find the chip name and the COM number.
  3. Look in Other devices.A device with a yellow warning icon has no driver. The name is often “CP2102 USB to UART Bridge Controller” or “USB Serial”.

macOS

  1. Open Terminal.Use Spotlight (Cmd+Space) and type Terminal.
  2. List the ports.Type ls /dev/cu.* and push Return.
  3. Compare.Disconnect the board and type the command again. The port that is not in the list now is your board.

Windows 10 and 11

Windows Update often installs the CP210x and CH340 drivers automatically when you connect the board. Wait one minute after you connect the board. If the board still shows in Other devices, install the driver from the chip maker.

CP2102 / CP2104 (Silicon Labs)

  1. Open the download page.Go to Silicon Labs CP210x VCP drivers.
  2. Download the driver.Select Downloads. Download the CP210x Universal Windows Driver.
  3. Extract the ZIP file.Right-click the file. Select Extract All.
  4. Install the driver.Right-click silabser.inf. Select Install (on Windows 11, select Show more options → Install).
  5. Connect the board again.A COM port shows in Ports (COM & LPT).

CH340 / CH341 (WCH)

  1. Open the download page.Go to WCH CH341SER.EXE.
  2. Download and run the installer.Click INSTALL in the DriverSetup window.
  3. Connect the board again.A port with the name “USB-SERIAL CH340” shows.

CH9102 / CH343 (WCH)

  1. Open the download page.Go to WCH CH343SER.ZIP.
  2. Extract the ZIP file.Open the folder and run the setup program.
  3. Install the driver.Click INSTALL. Then connect the board again.

Use the CH343SER driver for the CH9102. The CH341SER driver is for the CH340 and CH341.

Download drivers only from the chip maker. “Driver download” websites often give old or unsigned files, and some have malware.

macOS

New Macs (macOS 11 Big Sur and later)

macOS includes Apple drivers for the CP2102/CP2104 and the CH340, so you usually do not install a driver. Connect the board and type ls /dev/cu.*. The board shows as /dev/cu.usbserial-XXXX.

If no port shows, do these steps in sequence:

  1. Use a different cable.Many USB cables carry only power.
  2. Connect the board directly to the Mac.Do not use a hub or a dock for this test.
  3. Install the maker driver.Use the Silicon Labs CP210x VCP Mac OSX Driver or the WCH CH34xVCPDriver for CH340 and CH9102 chips.
  4. Allow the driver.Open System Settings → Privacy & Security (on macOS 11 and 12, System Preferences → Security & Privacy). Click Allow next to the message about the new system software. Restart the Mac if it asks.

Older Macs (macOS 10.15 Catalina and earlier)

Older macOS versions possibly do not have the Apple driver for your chip. If no port shows, install the maker driver.

  1. Download the driver for your chip.Use the Silicon Labs page for CP210x. Use the WCH macOS driver for CH340 and CH9102.
  2. Run the installer.Open the DMG or PKG file and follow the instructions.
  3. Allow the driver.Open System Preferences → Security & Privacy → General. Click Allow next to the message about Silicon Labs or WCH.
  4. Restart the Mac.Then connect the board and type ls /dev/cu.*.
Do not install an old CH340 driver on a new macOS. An old WCH driver and the Apple driver can both claim the board. Then two ports show for one board, or uploads fail. If this occurs, remove the old WCH driver and use one port only.

Boards that need no driver

Native USB (ESP32-S3, ESP32-C3, ESP32-C6)

These chips have a built-in USB Serial/JTAG controller. Some boards connect the USB connector directly to the chip, without a USB-to-serial chip. Windows 10/11, macOS and Linux use their standard USB serial driver for these boards, so you do not install a driver.

On macOS, the port name is /dev/cu.usbmodemXXXX. Some S3 boards have two USB connectors. One goes to a USB-to-serial chip, and one goes to the native USB.

Linux (optional)

Linux includes the CP210x, CH340 and CH9102 drivers. The port is /dev/ttyUSB0 or /dev/ttyACM0. If you get a “permission denied” error, add your user to the dialout group. Then log out and log in again.

terminal

sudo usermod -a -G dialout $USER

On Arch Linux, use the uucp group.

Troubleshooting

No port and no new device

The cable possibly carries only power. Use a cable that you know transfers data, for example a cable that operates with a phone and a computer. Then try a different USB port. Do not use a hub.

The port shows, then disappears

The connection is loose, or the port cannot supply sufficient current. Use a short cable of good quality. Connect the board directly to the computer. Disconnect motors and LED strips from the board during the upload.

Port busy or access denied

Another program uses the port. Close the Serial Monitor, other IDE windows and serial terminal programs. Then upload again. A program can open a port only one time.

Which port is the board?

Disconnect the board and look at the port list. Connect the board and look again. The new port is the board. In the Arduino IDE, use Tools → Port.

The port shows, but the upload fails

The driver is correct. Read the upload errors on the IDE setup page. Push and hold BOOT during the upload if the upload stops at “Connecting…”.

Resources