Thursday, May 7, 2015

Flash ESP8266 Firmware using esptool.py

Steps to download and flash firmware on ESP8266, using esptool.py, on Linux with Python 2.7.


- Download esptool, esptool.py.
- Download Firmware of ESP8266. I found it here: Ai-Thinker Firmware.
- Save the esptool.py and firmware in the same directory.

-Connect ESP8266 with FTDI adapter, make sure both ESP8266 and FTDI work on 3.3V.
ESP8266 VCC to separate 3.3V
ESP8266 GND - FTDI GND
ESP8266 TX - FTDI RX
ESP8266 RX - FTDI TX
ESP8266 CH_PD - ESP8266 3.3V
ESP8266 GPIO_0 - GND


- FTDI connect to PC USB.
- Power ON ESP8266.
- Run esptool:
$ python esptool.py -p /dev/ttyUSB0 write_flash 0x000000 "AI-v0.9.5.0 AT Firmware.bin"

where
- /dev/ttyUSB0 is the port to connect FTDI.
- AI-v0.9.5.0 AT Firmware.bin is the downloaded firmware.

The firmware I downloaded is:
00200.9.5(b1)
compiled @ Dec 25 2014 21:40:28
AI-THINKER Dec 25 2014


Usefull link:
- electrodragon.com ESP8266 Firmware

Newer version
Update ESP8266 firmware "v0.9.5.2 AT Firmware.bin"

No comments:

Post a Comment