ESP Easy: Flash the firmware with esptool.py on ESP8266 (GitHub) [Exclusive Guide]
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.
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang–700.0.59.5) ] we darwin
Type ‘help’ , “copyright” , “credits” or “license” for more information .
> exit ()
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 .
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.
PS C:UsersChristopheDocuments> PIP install esptool
Downloading esptool – 1 . 3 . tar . gz
Collecting pyserial > = 2 . 5 (from esptool)
Using cached pyserial – 3 . 2 . 1 – py2 . py3 – none – any . whl
Installing collected packages : pyserial , esptool
Running setup . py install for esptool . . . done
Successfully installed esptool – 1 . 3 pyserial – 3 . 2 . 1
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
esptool . py —port [serial–port–of–ESP8266] write_flash –fm [mode] –fs [size] 0x00000 [ nodemcu – firmware ] . bin
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)