esptool
More info
- Creator
- Fredrik Ahlberg
- Released
- 2014
- Owner
- Espressif
- Type
- Flashing tool
- License
- GPL-2.0
- Source
- github.com/espressif/esptool
The Python tool that talks to the ROM bootloader in ESP8266 and ESP32 chips over a serial port to write, read and erase their flash.
Every Espressif chip carries a bootloader in mask ROM that cannot be bricked. Hold GPIO0 low at reset and it comes up in download mode, listening on the UART for commands. Fredrik Ahlberg wrote esptool in 2014, back when the ESP8266 was a cheap Wi-Fi module documented mostly in Chinese, and Espressif later adopted it as its own.
Most dev boards wire the USB-serial chip's DTR and RTS lines to reset and GPIO0, so the tool can kick the chip into download mode unaided. When that fails, you end up holding a button in each hand. The package also ships espefuse and espsecure for eFuse bits and Secure Boot, where a mistake is permanent.