Note: If your module does not have any problem, don't try this.
I have tried many things to make it erase but it just wont erase and update. Today I have finally had break through with it. I also have seen here that several guys are having problems with it.
I am posting this because I have finally had break through with AT commands with ESP8266 - 01 module.
Many people recommend that you need external power supply or have to use a liner regulator of 3.3 volts, which at least I didn't have to use. I had tried to keep the whole thing as simple as possible.
Things and softwares I have used [Done using Windows 8]
A. Hardware
- Esp8266 - 01 module
- Ftdi usb to serial with 3.3 volt output option [original - otherwise you will waste money]
- Jumper cables
- Usb to Mini usb cable to Ftdi
- 10 uf capacitor
- 10 k resistors 2
- reset button
B. Software
- Python 2.7.10 Download Python | Python.org
- Coolterm CoolTerm - Free download and software reviews - CNET Download
- Esptool GitHub - espressif/esptool: Espressif SoC serial bootloader utility
- AI-v0.9.5.0 AT Firmware https://drive.google.com/folderview?id=0B_ctPy0pJuW6UmJCQ1RLb0JKUzg&usp=sharing&tid=0B_ctPy0pJuW6d1FqM1lvSkJmNU0
- LUA just installed for nodemcu Google Code Archive - Long-term storage for Google Code Project Hosting.
- Pyserial pyserial · PyPI
C. Getting help from Urls
- Loading new firmware onto an ESP8266 loading_firmware [ESP8266 Support WIKI]
- FLASHING FW STOPS AFTER 20 SECONDS - Solved post By Mr.Morse - Thu Apr 30, 2015 5:58 am Flashing fw stops after 20 seconds - Everything ESP8266
- Installing Python and PySerial Installing Python and PySerial | Arduino Lesson 17. Email Sending Movement Detector | Adafruit Learning System
STEP BY STEP
-
Install PYTHON [Link given]
-
Setup ENVIRONMENT VARIABLES form control panel->system->advanced system settings->
enviornmet variables -> system varialbles -> path [select it] -> edit -> ; C:\Python27 [add it after the string] -
Install PYSERIAL [Link given]
-
Install LUA [Link given]
-
Install Coolterm [Link given]
-
Download Esptool and saved it in C:\Python27\ folder esptool
-
Download AI-v0.9.5.0 AT Firmware from google and saved in the esptool folder, I had changed the name of the bin file so that I dont have to type full name. [Link given]
-
Restart windows
-
Setup the hardware as given in esp8266-01.jpg
-
Connect the FTDI with PC usb
-
You need to edit esptool.py using notepad++ as instructed by Mr.Morse who solved this problem.
- Edit esptool.py so that:
ESP_RAM_BLOCK = 0x180
ESP_FLASH_BLOCK = 0x40
-
Find which com port the ftdi is connected from device manager, if u see yellow warning then you might have a fake, in my case i had a fake prolific u->s converter....
so had to buy ftdi one.
-
!! Remember when flashing then only connect GPIO-0 TO GROUND. After finishing please remove ground contact from GPIO-0. Power down or use the reset button if the flashing does not work, some times it gives glitches.
-
go to the folder using cd and cd.. commands as per needed the destination should look like
C:\Python27\esptool> esptool.py -p COM20 write_flash 0x000000 fls.bin
[Note: My ftdi is on com 20 but your can be different, so please change it.
Changed the name AI-v0.9.5.0 AT.bin to fls.bin] -
press enter to start the process of flashing, after finishing disconnect the gpio-0 to ground jumper.
-
Power down the ftdi and connnet the usb again.
-
open coolterm window, use 9600 baud rate.
-
Type AT and you should receive OK.
I have also flashed the Esp 01 module with other firmwares using the same process,
C:\Python27\esptool> esptool.py -p COM20 write_flash 0x000000 fls.bin
there are so many firmwares I need to chek out.....
I hope this will help some of you guys.