USB drivers

Install the driver your board needs to flash

Many dev boards talk to your computer through a USB-to-serial bridge chip. If the matching driver isn't installed, the board powers on but never shows up as a serial port, so flashing fails. Find your board's chip below and install its driver.

CH340 driver

The CH340 (and CH341) is a USB-to-serial bridge from WCH found on most low-cost ESP32 and ESP8266 boards, HMI display panels, and Arduino clones. macOS does not ship a driver for it, so the board powers up but never appears as a serial port until you install one.

Common boards: Elecrow CrowPanel / ESP32-P4 Advance HMI, Sunton CYD displays, NodeMCU, WeMos / LOLIN D1, and many ESP32/ESP8266 clones.

Download the CH340 driver

macOS

  1. Download the macOS package from the WCH download page below and unzip it.
  2. Run the included .pkg installer.
  3. Open System Settings → Privacy & Security and click Allow if macOS blocks the system extension, then restart your Mac.
  4. Unplug and replug the board, it should now appear as /dev/cu.wchusbserial* (or /dev/cu.usbserial*).

Windows

  1. Download the Windows driver from the WCH download page below.
  2. Run the installer and click INSTALL.
  3. Reconnect the board: it appears under Ports (COM & LPT) in Device Manager.

Linux

  1. Modern kernels include the ch341 module, so the board usually appears as /dev/ttyUSB0 with no install.
  2. If it does not, add your user to the dialout group (sudo usermod -aG dialout $USER) and replug.

CP210x driver

The CP2102 / CP2104 is a USB-to-serial bridge from Silicon Labs used on official Espressif DevKits, Heltec, TTGO / LilyGO, and M5Stack boards. It uses the Silicon Labs CP210x VCP driver. Recent macOS versions often include it, but installing the official driver is the reliable fix when the port doesn't show up.

Common boards: Espressif ESP32-DevKitC, ESP-WROVER-KIT, Heltec, TTGO / LilyGO, and M5Stack devices.

Download the CP210x driver

macOS

  1. Download the macOS VCP driver from the Silicon Labs page below.
  2. Run the .dmg / .pkg installer.
  3. Approve the system extension in System Settings → Privacy & Security if prompted, then restart.
  4. Replug the board: it appears as /dev/cu.SLAB_USBtoUART (or /dev/cu.usbserial*).

Windows

  1. Download the Windows VCP driver from the Silicon Labs page below.
  2. Run the installer, then reconnect the board.
  3. It appears under Ports (COM & LPT) in Device Manager.

Linux

  1. The cp210x module ships with modern kernels, the board appears as /dev/ttyUSB0 automatically.
  2. If your user lacks access, add it to the dialout group (sudo usermod -aG dialout $USER) and replug.

Still not detected after installing? Try a different USB cable (some are charge-only), press the board's RESET button after plugging in, and make sure you connected to the UART / debug port rather than a native-USB port.

Back to Schematik