Flash an ESP32 with ESPHome (USB, boot)
First ESP32-C6 flash with ESPHome: USB cable, CP210x/CH340 drivers, ESPHome Web, boot mode and fixes.
Getting started
Home Assistant
Buying
First ESP32-C6 flash with ESPHome: USB cable, CP210x/CH340 drivers, ESPHome Web, boot mode and fixes.

Flashing an ESP32 board means writing its program into its memory for the first time. This first write must go through a USB cable, because a brand-new board knows neither your Wi-Fi network nor ESPHome, the software that prepares that program from a configuration file called YAML (a plain text that describes what the board must do). After that, every update goes over the network without a cable, which is called an OTA update. This tutorial walks you step by step through that first flash with an ESP32-C6 DevKitC-1, a small electronic board with Wi-Fi, from a Windows, macOS or Linux computer.
Expected result: the board boots with your configuration, joins your 2.4 GHz Wi-Fi and shows up in Home Assistant. Time: 15 to 30 minutes. Difficulty: beginner.

This tutorial uses the ESP32-C6-DevKitC-1. The port marked UART is the one for the first USB flash; the port marked USB is the microcontroller native port. The two front buttons are RESET and BOOT.
The ESP32-C6-DevKitC-1 has two USB-C ports. Use the one marked UART: it goes through a USB-to-serial chip (CP210x on the official board). The other, marked USB, is the microcontroller’s native port.
On Windows 10 and 11, the driver usually installs by itself. If not, install Silicon Labs’ CP210x driver, or the CH340 driver for boards using that chip. Check that a “COM” port appears in Device Manager under “Ports (COM & LPT)”. macOS often has the driver built in. On Linux, add your user to the dialout group (sudo usermod -a -G dialout $USER) and log in again.
Check: unplug and replug the board; a line appears and disappears in the port list.
In ESPHome Device Builder, on your device’s card, open the ⋮ → Install menu, then Manual download. When compilation ends (a few minutes the first time), choose Factory format and save the .bin file.
If Home Assistant is open over HTTPS and the board is plugged into the computer showing the page, the Plug into the computer running ESPHome Dashboard option skips the download. It does not work on a plain-HTTP local address.
.bin file and confirm.If the connection fails: put the board in download mode. Hold the BOOT button, tap RESET (or EN), then release BOOT, and try again.
In ESPHome Web, open Logs after installing: the startup lines should show the Wi-Fi connection then the IP address. In Home Assistant, open Settings → Devices & services: the ESPHome device appears among discovered devices. Click Configure and enter the API encryption key from your YAML.
| Symptom | Likely cause | Fix |
|---|---|---|
| No port in the list | Charge-only cable or wrong USB port | Change cable, use the UART port |
| “Failed to connect” | Board not in download mode | Hold BOOT, tap RESET, release BOOT |
| Write interrupted | Unreliable cable or USB hub | Plug straight into the computer |
| Board reboots in a loop | Invalid config or reserved pin | Read the logs; see GPIO wiring basics |
| No Wi-Fi connection | 5 GHz-only network or wrong password | Use 2.4 GHz, check secrets.yaml |
Put it into practice with a step-by-step ESP32 project or the complete temperature sensor guide. Official documentation: ESPHome Web and the ESPHome getting-started guide.
Updated on 30 October 2026. ESPHome and Home Assistant menu names change: check them on your version.
Was this page helpful?
Thank you!
What should we improve?
Torn between two models or stuck on a build? Drop us a line and we will get back to you by email.
Cookies and analytics
We use Google Analytics 4 to understand how the site is used (page views, navigation). It is only switched on if you accept. Declining does not stop you using the site. More: cookie settings and privacy policy (in French).