esptool

5.2.0 · active · verified Sun Apr 12

esptool is a Python-based, open-source, platform-independent utility for flashing, provisioning, and interacting with Espressif Systems' SoCs like ESP32 and ESP8266. It facilitates tasks such as reading, writing, erasing, and verifying flash data, alongside functions for reading chip features and preparing binary executable images. The current version is 5.2.0, and the library maintains an active development cycle with frequent updates and major releases.

Warnings

Install

Imports

Quickstart

This command connects to an Espressif chip via the specified serial port, automatically detects its type, and then reads and prints its SPI flash ID. This is a basic way to verify connection and `esptool` functionality.

# To detect an attached Espressif chip and read its flash ID:
# Replace '/dev/ttyUSB0' with your actual serial port (e.g., 'COM1' on Windows)
# Ensure your ESP device is in flashing mode or connected correctly.
esptool --port /dev/ttyUSB0 flash_id

view raw JSON →