ESP Easy: Flash the firmware with esptool.py on ESP8266 (GitHub) [Exclusive Guide]

3:35 pm May 7, 201715557

ESP Easy is very easy to Flash on Windows using the Setup utility contained in the Bill. If you are a user Linux (PC, Raspberry Pi, Orange PI…) or macOS, it’ll have to use esptool.py already featured this tutorial in . In this tutorial, we will install on firmware on a Wemos D1 Mini , but the method also applies to all ESP8266 NodeMCU (attention, some cards need to be bootload mode before you can Flash the firmware).

Before you begin, check that version 2.7.x of python is well installed. Open the Terminal and run Python. If Python is installed, the shell should start. Enter exit () to exit the shell.

if Python is not installed on your machine, install it by visiting here .

To install esptool.py, it is best to leave it to Python so that all dependencies are installed at the same time.

in case of difficulty, you can also run python m pip install esptool or pip2 install esptool .

On Windows

run PowerShell (which allows to run Unix commands). Place you in the esptool installation directory, for example Documents and initiate the installation of esptool (and dependencies) as on macOS or Linux.

Vous pouvez maintenant appeler esptool.py depuis n’importe ou. Indeed, it was installed in the directory of the default Python executables (C:Python27Scripts).

Now that everything is ready, we can start the installation. In a Terminal, place you in the ESP Easy directory. You can retrieve it directly from GitHub here or clone it using the command

La esptool.py to Flash an ESP8266 flash memory is of the following form

you must pass the following parameters:

  • serial on which is plugged in the ESP8266. On moaOS or linux, run the command ls / dev / tty . * . On Windows, run mode in the command prompt
  • mode (-fm or – flash_mode): dio by default
  • size (-fs or – flash_size): 32 m for 4MB
  • nodemcu-firmware : the path to the binary to Flash. Here ESPEasy_Rxxx_xxxx.bin

which gives for example a Wemos D1 Mini (4MB)