- Download and install Python 2.x or 3.x from https://www.python.org/downloads
- Download Esptool from https://github.com/espressif/esptool/releases.
- Extract the contents of esptool compressed file to c:\esptool.
- Open Command Prompt ( Start > Run > cmd ) and navigate to esptool folder cd c:/esptool .
Install the esptool by issuing the commands below.
python setup.py install
pip install pyserial
Change COM3 to your own Port
For 1M Flash:
python esptool.py -b 115200 --port COM3 read_flash 0x000000 0x100000 flash_1M.bin
python esptool.py -b 115200 --port COM3 write_flash --flash_freq 80m 0x000000 flash_1M.bin
For 4M Flash:
python esptool.py -b 115200 --port COM3 read_flash 0x00000 0x400000 flash_4M.bin
python esptool.py -b 115200 --port COM3 write_flash --flash_freq 80m 0x000000 flash_4M.bin
that is all
you should get something like this for the 4M flash
D:\SONOFF\ESPTool\esptool-2.6\esptool-2.6>python esptool.py -b 115200 --port COM3 read_flash 0x00000 0x400000 flash_4M.bin
esptool.py v2.6
Serial port COM3
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 80:7d:3a:33:xx:xx
Uploading stub...
Running stub...
Stub running...
4194304 (100 %)
4194304 (100 %)
Read 4194304 bytes at 0x0 in 402.0 seconds (83.5 kbit/s)...
Hard resetting via RTS pin...
to write flash you need to erase it first by
esptool.py erase_flash