Skip to content

ESP Flasher Guide ​

Instructions ​

  1. Prepare your device

    • Use Chrome or Edge.
    • Connect the ESP32-C3 TFT DevKit to your computer with a USB data cable.
    • Close all applications that may be using the serial port, including Arduino IDE, Thonny, and serial terminals.
  2. Enter download mode (recommended)

    • Press and hold the board's BOOT button.
    • Briefly press RESET, then release it.
    • Release BOOT.
    • The device should now be in download mode, making it easier to connect.
  3. Flash the firmware

    • Click Connect Device.
    • Select the correct device in the serial port dialog:
      • Windows: "USB Serial Port (COMx)" or a device containing "CH340".
      • macOS: "/dev/cu.wchusbserial" or a similar name.
      • Linux: "/dev/ttyUSB0" or "/dev/ttyACM0".
    • Wait for the connection to succeed. The tool automatically tries different connection modes.
    • Click Start Flashing and wait for completion.
    • The device will restart into the MicroPython environment.
  4. Verify the result

    • Press RESET after flashing.
    • Connect using a serial tool such as Thonny at 115200 baud.
    • You should see the MicroPython >>> prompt.

Connection troubleshooting

🚨 No serial devices available ​

If the dialog opened by Connect Device does not list any devices:

1. Check the driver (the most common cause)

  • Windows: Install the CH340 or CP210x driver.
  • macOS: A manual driver installation is usually unnecessary, but a restart may be needed.
  • Linux: Drivers are usually included; check access permissions.

2. Check Device Manager (Windows)

  • Open Device Manager and look under "Ports (COM & LPT)".
  • A yellow exclamation mark indicates a driver problem.
  • If the device appears as "Unknown device", install the correct driver.

3. Check permissions (Linux/macOS)

bash
# Linux: add your user to the dialout group
sudo usermod -a -G dialout $USER
# Then restart or sign out and sign in again

# macOS: check system security settings
# System Settings > Security & Privacy > Privacy > Input Monitoring

4. Check browser compatibility

  • Required: Chrome 89+ or Edge 89+.
  • Experimental features: Open chrome://flags/.
    • Search for "Experimental Web Platform features".
    • Set it to "Enabled".
    • Restart the browser.
  • HTTPS requirement: The Web Serial API requires HTTPS.
    • Local development can use localhost or 127.0.0.1.

🔧 Other connection issues ​

Connection failure or a "Cannot read properties of undefined" error:

Basic checks:

  1. Use the latest version of Chrome or Edge.
  2. Check your USB cable; use a cable that supports data transfer.
  3. Unplug and reconnect the USB cable.
  4. Close other applications that may be using the serial port, such as Arduino IDE or serial terminals.

Enter download mode:

  1. Press and hold BOOT.
  2. Briefly press RESET, then release it.
  3. Release BOOT.
  4. The device should now be in download mode.

Select the correct serial port:

  • Windows: Usually "USB Serial Port (COMx)" or "USB-SERIAL CH340 (COMx)".
  • macOS: Usually "/dev/cu.wchusbserial" or a similar name.
  • Linux: Usually "/dev/ttyUSB0" or "/dev/ttyACM0".

Retry the connection: If the first attempt fails, the tool automatically tries four connection modes:

  1. Simple mode: the most basic connection method.
  2. Standard mode: a normal ESPLoader connection.
  3. Compatibility mode: manually opens the serial port.
  4. Serial-only mode: establishes serial communication only; flashing is unavailable in this mode.

Other things to try:

  • Lower the baud rate to 115200.
  • Ensure the board has a sufficient power supply.
  • Check for a loose USB connector.
  • Restart the browser and try again.

📋 Quick checklist ​

Before using the flashing tool, check that:

  • [ ] ✅ The device is connected to the computer by USB.
  • [ ] ✅ The serial device appears in Device Manager.
  • [ ] ✅ The correct CH340/CP210x driver is installed.
  • [ ] ✅ All applications using the serial port are closed.
  • [ ] ✅ You are using the latest Chrome or Edge.
  • [ ] ✅ Experimental browser features are enabled.
  • [ ] ✅ The page is served over HTTPS or from localhost.

If all of these checks pass but you still cannot select a device, use an ESP32 flashing tool such as esptool.py or Flash Download Tools.

Best practices

  1. Before connecting: Close serial applications and ensure no other program is using the device.
  2. Choose the correct device: Select the entry labeled USB Serial or containing CH340.
  3. Be patient: The first connection may take 10–30 seconds.
  4. Read the logs: Check the operation log for detailed error messages.
  5. Retry: If one connection mode fails, the tool automatically tries other modes.