How to Backup Original Firmware of Esp8266EX or Esp-01

by hackplague in Circuits > Arduino

13067 Views, 7 Favorites, 0 Comments

How to Backup Original Firmware of Esp8266EX or Esp-01

20190809_103557.jpg
20190809_103551.jpg

Why ? backup of original firmware is important.

simplest ans is = original is original

In this tutorial I will show you how to backup original firmware of esp8266ex.

The ESP8266EX is a low-cost Wi-Fi microchip with full TCP/IP stack and microcontroller capability produced by manufacturer Espressif Systems in Shanghai, China.

Hardware Required

72fb76d9-d3ad-45a4-9323-e9924a3d7805.jpg
300px-ESP-01.jpg
45030-dscn06281.jpg
breadboard-gl12-500x500.jpg

Hardware

1. ESP8266EX or ESP8266-01

2. FTDI Module which supports 3.3 v Output

3. Breadboard

4. Jumper wire

I do not advise Arduino. it causes lots of problems

Software Required

1. Python 2 or Python 3 its up to you

And do not forget to install (Python Serial Library) for more info and installation process

2 .esptool

3. at last you will need command prompt or terminal

and Software part is done

Hardware Connection

flashing_esp-01.png
flesh_esp8266ex.png

FTDI CONNECTION......................ESP8266EX CONNECTION

  1. FTDI GND..............................................ESP GND + ESP GPIO0
  2. FTDI RX..................................................ESP TX
  3. FTDI TX..................................................ESP RX
  4. FTDI VCC...............................................ESP CH-PD + ESP VCC

Connection part is done now its time to backup

Now Command Prompt Part

20190809_103557.jpg
20190809_103551.jpg
20190809_104515.jpg
20190809_104603.jpg
Screenshot (97).png
Screenshot (98).png
Screenshot (99).png
Screenshot (100).png
  1. copy the esptool to ( C:/ ) Directory
  2. Open your command prompt
  3. now follow the commands
cd /
cd esptool 

Installation of Esptool

setup.py install

IMPORTANT to correctly set the flash size and flash mode values according to your device.

esptool.py --port COMx flash_id

Firmware backup

esptool.py --port COMx read_flash 0x00000 0x400000 image.bin


Some Extra Commands :


Erase firmware

esptool.py --port COMx erase_flash

Upload firmware

esptool.py --port COMx write_flash -fs 4MB -fm dio 0x0 image.bin
Change the value of x to your COM port x=Port Number ....Example: COM15,COM12