How to flash ESP32 firmware with esptool

Install esptool, pick the right chip and port, erase flash and write a .bin to an ESP32, ESP32-S3 or ESP32-C5 board from the command line.

Intermediate · about 7 min · Linux, Windows, macOS

esptool is the official command-line flasher for Espressif chips. It is the fallback whenever a browser installer stalls, and the only reliable route for newer targets such as the ESP32-C5. The whole job is three decisions: which chip, which serial port, which file — then one write_flash call.

What this guide covers

Common pitfalls covered

Questions answered

This is a limited preview. The full walkthrough, command syntax and copy-ready examples are available to signed-in users.

Sign in to read the full page