Intro Esp 8266 Firmware Update
Intro Esp 8266 Firmware Update
by RaviP6
The ESP8266 module is a cheap Wireless module.It has SOC(system on chip) that is capable of providing wifi to
any micro controller/microprocessor .There are two ways the esp8266 can be used .
1. Standalone esp8266
2. Esp8266 with raspberry pi or arduino or stm32
Esp8266 needs a external 3.3 v for working properly .If you are using esp8266 with arduino, try not to
provide power from arduino . As arduino maximum current providing capacity is 40mA while esp8266
draws 250mA. This is most likely the problem lies whenever uploading the new firmware or when you are
using the esp8266
For beginners its advised to go with node mcu board's available in market .There are two types of board's
one with RGB led & Ldr sensor and other with just breakout pins .This board has built in voltage regulator
that handles the proper power.
espFlasher
Esp01-programmer adapter
Note:The module do not enter the programming board directly .For this you need to solder the jumper on it .Please
refer the photo for this .The jumper is solder between gpio 0 and gnd pin.when not using in programming mode
shift the jumper to the empty pin.
With this module you can separately give 5v to arduino and 3.3 v to esp8266 at the same time .This is the beauty
of this module .
Esp rx pin also need 3.3v .If you try to put arduino tx to esp rx .The esp module can get damage .To prevent this
from happening you can do two things .
1. Voltage divider
use 20k and 10k resistor to achive this . Please check the connection in photo
2. Level shifter
https://www.instructables.com/id/Getting-Started-with-the-ESP8266-ESP-12/
Esp8266 Firmware Update: Page 3
I used Arduino instead of cp2102 module, and I had no issue in communication.
The connection will remain mostly same for esp8266-12 to run it in flash mode.
Upload the blank program on arduino if using. And then connect esp tx and rx pins on it
Open the software and one by one add the bin files in it..
Now add the addresses as follows .
boot_v1.2.bin --0x00000
user1.1024.new2.bin --0x01000
blank.bin --0x7e000
blank.bin --0x3fe000
esp_init_data_default.bin --0x3fc000
Then just click flash button ,if everything is fine the flasher will show you the status of download and
also your esp 8266 module led will blink very fast.
Congratulation!!! .you have uploaded latest firmware to esp8266.
If you do not find this mac address .use the reset pin and put it to gnd for 2 seconds and then
remove it from gnd and re flash it .Its very important to get the mac address.
IT’s time to test your Esp module .now just remove GPIO 0 wire that was connected to GND ,you
can connect it to VCC or leave it like this.
Now plug your Arduino back to pc and open serial port.
Check the at commands on different baud rate ,most of the esp works fine on this 115200 baud rate
.
NOW its time to test AT commands .enter "AT" in serial port and you will get "OK". Now enter
"AT+GMR" and check the firmware version.
To change the baud rate you can do this "AT+UART_DEF=9600, 8, 1, 0, 0"
There are two software to install the bin file on soc of 2.)Now just browse the bin file you want to upload on
esp8266 ,The second method is by using esp flash esp and do not change any of the settings except
download . the com port and change baud rate to 115200 and
click on start .you will see an uploading status .Have
1.)Download the software from the below link some patience until it says finish.
http://bbs.espressif.com/viewtopic.php?t=25
esplorer is a software specially made for esp8266 wifi module.you can upload lua code or AT commands on the esp8266 by
using this software.
download this from the link given.
http://esp8266.ru/esplorer/
Hi fellow,
I have problem flashing nodemcu to esp-01 using arduino (empty skectch). Here is my
configuration:
ESP8266 - Arduino
The esp module works normally in normal mode (Esp GIPO0 ->3.3v), i can run AT commands and
connect to access point. But if change the GPIO0 to GND in flash mode, i get no response in serial
terminal and also the esptool.py returns reponse time out.
Is anything wrong with my configuration? sorry i'm new to this, need your help. thank you.
Hi,LorensW
When trying to upload firmware do one thing .Use the reset pin on esp8266 and plug it in gnd and
then remove it after 2 seconds.
Then try uploading firmware again.
Most likely you will get be able to upload the firmware and get the mac address in the dialog box
too.
Those of you who are having the problem "Failed to Connect" just make sure:
1. GPIO 0 --> GND
2. Use external 3.3V source to power ESP
3. Make common GND between Arduino and ESP power source (this is most important)
Hey!
I have got the same problem! Try to restart the ESP-module by unpluging the 3.3V pin and then
plug it back! It worked for me all the times.If not, be sure that the COM port is closed, the voltage
pin is unplugged and then repeat the steps from this tutorial.
Anyone happen to know if these would be compatible with Wink home automation hub?
I got it rectified myself. Just sharing the solution here. I didn't use any external supply to esp8266. I
just replaced the FTDI Basic with PL2303 moddule connected to ESP8266 Breakout board. I am
connecting it to my laptop. I am able to flash Firmware successfully and now getting response of
AT commands using ESPlorer.
what is .bin file for esp8266 flashing and how to dwn it ,pls help me
I was having the same problem,I solved this by changed usb to ttl from Figure 1 to Figure 2.
Hi All, After Reading the Instructable and doing it on 2 diffrenet esp . I always end up with an
unresponsive AT. I want to know the easist way to factory reset esp8266. So i can Send AT
commsnds.
Let me know how your are powering the esp8266 first and the other connections too.This is the
first hurdle when you use the esp8266.
Next is the firmware file is itself corrupt.you need to download the AT firmware file from github.com.
Also check the esp8266 temperature regularly.If the temperature is exceeded due to excess of
voltage the esp can get internally damage.
There are fake esp8266 01 modules available in market be careful.
Hi NavalJ ,I am also stuck in same error plz share what did you find.
Hi,
I have just started learning ESP8266-01 module.
Is it necessary to flash the 8266 module before programming it with any code to use it for some
purpose ?
OR
Does it it come pre-flashed and we can start programming it with our own code without the need of
flashing ?
Hi thanks Ravi,
Got that. So then how and when a re-flash is needed for ESP8266. Is that when the chip corrupts
or freezes or what ?
how are u powering esp8266?make sure you do not power from laptop nor arduino .use an
external power supply and then try.
Try some other esp8266 firmware .it looks like the firmware that you are trying to put is corrupt
Hi EliasA5 - I get the very same problem. If you find a solution, it will be very much appreciated if
you share it.
Great guide!
[SOLVED] To all the people having "Failed to connect", this is how I solved it.
My setup:
1) os: OSX El Capitan
2) esp: ESP8266-01
3) Arduino Uno: DCCDuino clone
4) flasher: esptool.py
5) connections:
ESP--->Arduino
GND(-): GND
GPIO0: GND
EN(CH_PD): 3.3v
VCC(+): 3.3v
TX: TX
RX: RX
This was failing, so the solution was:
Add 1000mf capacitor between + and -, and that's it!
Hope it helps, I spent more than a day 100% on this, and finally got it working thanks to the above..
cheers
I was having the same Issue,I solved this but by pressing the reset button 2 or 3 times (while
holding the [PROG] button) when it tries to connect.
Obviously if you want to have your ESP8266 work with yr Arduino, e.g. as a WiFi shield, you need
to connect Rx-Tx and Tx-Rx
Hi, can you draw the scheme of your setup, because i'm new in this...
And, what capacitor voltage do you use...?
Thanks..
it*
I'm a complete beginner. I'm using a 201 module (also tried the 01 with the same issues) I flashed
the newest firmware called "nodemcu_float_0.9.6-dev_20150704". In Lua Loader I get a page of
this gibberish when uploading a file to the esp. In esplorer I get this "Can't autodetect firmware,
because proper answer not received. Please, reset module or continue manually..." In case this is
a situation with the firmware I also tried the stock firmware with ESP8266Flasher and also v0.9.2.2
AT Firmware. I followed the steps to cycle reset a few times but nothing works GPIO0 is indeed
high, GPIO2 10k resistor high, GPIO15 10k to low, reset to high, CH_PD high, RX through a
voltage divider. Any other clues? I've spent days trying to get this going.
Thanks
I am done I have done all the steps as you mentioned but at last I am able to sent at commands
using esplorer but I am unable to send any LUA file to esp it sends error after every line on right
hand side of the software's window
Hello Experts
We
have been struggling to execute application on ESP8266 and I tried all the flashing procedure
mentioned above but no luck and
our esp8266-01 is resetting again & again with watchdog reset error
wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
Setup don start
while uploading the code to ESP using Esplorer I get the error stating: "waiting answer from ESP –
timeout reached,send abort.".. how to solve it?
How did you connect the esp? Have you grounded esp gpio 0?
I've already downloaded the firmware to esp8266. However, when I disconnect the gpio0 , the com
port of the computer disappeared. Any AT command to esp8266 cannot get any response. Is there
any solution to this problem?