esptool

2 minutes of reading
Proconductor: Espressif Systems
Availability: at GitHub
Category: tool
Type: flasher
Implementation difficulties: low
Card revision: 2.0
esp8266 wifi
one of the ESP8266 versions

esptool is a free software tool based on Python expressly designed to allow our computers to communicate with boot loader of the chips SOC ESP8266 and EPS32, that is the heart of many low-cost and highly integrable domotic components (for example, see the lines products ITEAD Sonoff Smart Home e Shelly Home Automation System).

This software is available for free from GitHub and allows systems Windows, macOS and Linux to interface via USB port and a small one USB / TTL adapter (able to act as a "bridge" on the hardware level with the component based on ESP8266 / EP32 and the computer itself).

Essentially this connection allows to carry out three main actions:

  • read the memory of the component / device and then make a backup;
  • delete the component / device memory;
  • write the memory of the component / device, then reprogrammarlo with other firmware (eg. Sonoff-Tasmota, Espurna and / or others).

Installation

WINDOWS

Prosee first to download of the installation package of Python (choose only between versions 2.7 o 3.4 or higher than the 3.4) at this link, then install the package.

ATTENZIONE: is extremely necessary that the Python installation includes the "Add Python to enviroment variables" entry. If you did not select it during installation, you can correct it by re-launching the installer, selecting "Modify" and, advancing one step, select "Add Python to enviroment variables". NO profollow without having provveduto.

Carried out installation, go to procommand mpt and run the following command:

pip install esptool

In case of error / s, proCheck one of the following three commands:

python -m pip install esptool
pip2 install esptool
pip3 install esptool

MAC

Prosee first to download of the installation package of Python (choose only between versions 2.7 o 3.4 or higher than the 3.4) at this link, then install the package.

Then go to the terminal and execute the following command:

cd ~/Documents
git clone https://github.com/themadinventor/esptool.git

then, to follow:

cd esptool
sudo python setup.py install

Ubuntu

Run the following commands from the terminal (CTRL + AL + T):

git clone https://github.com/themadinventor/esptool.git
cd esptools
sudo apt-get install python3-setuptools
sudo python3 setup.py install

utilization

Use the command

esptool.py -h

to get the list of the possible functions - and related syntax - of the tool.

Next, the guide dedicated to the use of this tool:

Backup, restore and deletion of a firmware Sonoff (and similar)


Please comment below