Close

updating the firmware of the ESP8266

A project log for Cypress PSOC 4 + ESP8266 WS2812 RGB XMAS Lights

802.11 WIFI enabled RGB LED Strips, using the ESP8266 and $4 Psoc 4 dev board.

charliexcharliex 11/01/2014 at 18:174 Comments

There is lots of info on this elsewhere, but this is partly for me to easily find when i forget :)

Grab the esp8266 firmware flasher and binary, i used v0.9.2.2 AT Firmware.bin from here

http://www.electrodragon.com/w/Wi07c

CH_PD HIGH
GPIO LOW

use a low numbered COM port , 6 or less, you can change this in the device manager if needed, in windows handling comports about COM10 is slightly different so a lot of software won't do it

power on the esp8266 with serial at 115kbps

Run the flash tool, load the binary change the COM port to match, leave the second number (offset) at 0x0000 )

Hit download, should see this, I've always gotten the last warning.

connecting ....

Erasing flash...

Writing at 0x00000000... (0 %)

Writing at 0x00000400... (0 %)

Writing at 0x00000800... (0 %)

....

Writing at 0x0007e800... (99 %)

Writing at 0x0007ec00... (99 %)

Leaving...

Failed to leave Flash mode

After flash the ESP8266 settings will likely reset to 9600n81, enjoy new baud rates etc!, remove power , remove GPIO low , and restart.

AT+GMR prints the firmware id

0018000902

Set the baud rate

AT+CIOBAUD?

AT+CIOBAUD=115200
AT+CIOBAUD=230400
AT+CIOBAUD=460800
AT+CIOBAUD=921600

Listen on UDP port 20002

AT+CWMODE=3
AT+CIFSR
AT+CIPMUX=1
AT+CIPSERVER=1,20002
AT+CIPSTO=9000
AT+CIPMUX=0

Some other notes, the cypress bootloader host has a couple of small bugs, if you remove board to switch into bootloader mode, it'll redo the com port list and reset to the first entry. if you have the comport open in another app, it'll null out all the settings and then back to 9600 after closing the other software using the com port

With teraterm (maybe others too ) i can remove the dev board from usb and plug it back and in and it'll keep the serial going, which is really useful and acts more like a traditional RS232 port. But it also means i forget to close teraterm and the bootloader issue above kicks in, be nice to have a cmd line bootloader going instead or just have the uart bootloader integrated into the Creator UI.

Discussions

Xzion_DC wrote 08/04/2015 at 06:56 point

Hi, when I try to flash the firmware , it fails to detect the device. When I open a serial port terminal , esp8266 keeps printing " NON GENUINE DEVICE FOUND!" , even AT commands are not working. Any solution ? 

  Are you sure? yes | no

charliex wrote 12/03/2015 at 20:46 point

i missed this comment before, but that usually means you have a counterfeit FTDI chip http://internetofhomethings.com/homethings/?tag=not-genuine-device-found

  Are you sure? yes | no

langpenguin wrote 11/05/2014 at 19:58 point
How do you connect the computer to the esp8266 to flash the firmware? Can I use an arduino for this? My goal is to have a standalone esp8266 doing stuff, but would like to program it with an arduino(I only have an arduino for usb to serial).

  Are you sure? yes | no

charliex wrote 11/05/2014 at 21:24 point
yeah if the arduino can support multiple uart's, basically you need a 3.3V level UART at 115kbps (or 9600 on some of them), then have it appear as a com port, i run an echo server in the cpu so it sends all the data from uart to the other and back again.


or you can use an FTDI 3.3v uart cable which would be a lot easier

  Are you sure? yes | no