ESP8266 - 01 module flashing break through - AT command firmware

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

  1. Esp8266 - 01 module
  2. Ftdi usb to serial with 3.3 volt output option [original - otherwise you will waste money]
  3. Jumper cables
  4. Usb to Mini usb cable to Ftdi
  5. 10 uf capacitor
  6. 10 k resistors 2
  7. reset button

B. Software

  1. Python 2.7.10 Download Python | Python.org
  2. Coolterm CoolTerm - Free download and software reviews - CNET Download
  3. Esptool GitHub - espressif/esptool: Espressif SoC serial bootloader utility
  4. AI-v0.9.5.0 AT Firmware https://drive.google.com/folderview?id=0B_ctPy0pJuW6UmJCQ1RLb0JKUzg&usp=sharing&tid=0B_ctPy0pJuW6d1FqM1lvSkJmNU0
  5. LUA just installed for nodemcu Google Code Archive - Long-term storage for Google Code Project Hosting.
  6. Pyserial pyserial · PyPI

C. Getting help from Urls

  1. Loading new firmware onto an ESP8266 loading_firmware [ESP8266 Support WIKI]
  2. 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
  3. Installing Python and PySerial Installing Python and PySerial | Arduino Lesson 17. Email Sending Movement Detector | Adafruit Learning System

STEP BY STEP

  1. Install PYTHON [Link given]

  2. 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]

  3. Install PYSERIAL [Link given]

  4. Install LUA [Link given]

  5. Install Coolterm [Link given]

  6. Download Esptool and saved it in C:\Python27\ folder esptool

  7. 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]

  8. Restart windows

  9. Setup the hardware as given in esp8266-01.jpg

  10. Connect the FTDI with PC usb

  11. 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
  1. 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.... :frowning: so had to buy ftdi one.

  2. !! 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.

  3. 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]

  4. press enter to start the process of flashing, after finishing disconnect the gpio-0 to ground jumper.

  5. Power down the ftdi and connnet the usb again.

  6. open coolterm window, use 9600 baud rate.

  7. 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.

ftdi u-s module.jpg

After the flashing of the Esp8266-01, I have tested some of the following tutorial from allabouee.... Its working fine.

I have tested, Kevin Darrah IOT of things is working.....

here is the link Cheap and Easy WiFi (IoT) Tutorial Part 1 - ESP8266 Setup/Intro - YouTube

All the firmwares are here in this link

Hi

As I was having problem with flashing ESP8266, came across your post. I have followed all the steps mentioned by you but I am getting the error as shown in attached file.
Please help.

Thanks

Error.png

Why is the word File showing up. Point the tool to

C:\Python27\esptool> esptool.py -p COM20 write_flash 0x000000 fls.bin

not File C:\Python27\esptool> esptool.py -p COM20 write_flash 0x000000 fls.bin

rajpratapsingh099 - bro, sometimes it shows some error, be patience, re do the same process again. It will work.

Hi!

I am trying to follow all the steps, but when I start to flash the module I receive the folloing message:

Connecting...

A fatal error ocurred: Failed to connect to ESP8266

Could someone tell me why could this happen? Im retrying a lot of times by clickig the reset button but always get the same response

Thanks for any help!

This one, Ok right. You have to install all the softwares given here. This is for resetting the Esp Module. For me this worked, but no guarantee for you.

I am not expert in this. I managed to make it work. Follow the steps with another module, Please. I hope it works for you.

For me ds1307 is not working with adafruit lib. Can you believe a simple time thingi not working..... So I used time lib. It hurts so much..... wasting time on things not working.

Hi

lozi_dani follow this link ( ESP8266 UPGRADING FIRMWARE - YouTube ). It worked for me it might help you too.