background image

OLIMEX© 2016

Upgrading ESP8266

HOW TO UPGRADE ESP8266 BOARDS

HOW TO UPGRADE ESP8266 BOARDS

USING

USING

ESP FLASH DOWNLOAD TOOLS

ESP FLASH DOWNLOAD TOOLS

This document applies for the following products:

This document applies for the following products:

 ESP8266-EVB; ESP8266-EVB-BAT; ESP8266-EVB-BAT-BOX; 

 ESP8266-EVB; ESP8266-EVB-BAT; ESP8266-EVB-BAT-BOX; 

MOD-ESP8266-WIFI-DEV; MOD-ESP8266-WIFI; 

MOD-ESP8266-WIFI-DEV; MOD-ESP8266-WIFI; 

Document revision A, March 2016

All boards produced by Olimex LTD are ROHS compliant

Summary of Contents for ESP8266 Series

Page 1: ...This document applies for the following products This document applies for the following products ESP8266 EVB ESP8266 EVB BAT ESP8266 EVB BAT BOX ESP8266 EVB ESP8266 EVB BAT ESP8266 EVB BAT BOX MOD ESP8266 WIFI DEV MOD ESP8266 WIFI MOD ESP8266 WIFI DEV MOD ESP8266 WIFI Document revision A March 2016 All boards produced by Olimex LTD are ROHS compliant ...

Page 2: ...oducts described in this document are subject to continuous development and improvements All particulars of the products and their use contained in this document are given by OLIMEX in good faith However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded This document is intended only to assist the reader in th...

Page 3: ... USB serial cable 6 2 1 4 Personal computer 6 2 2 Software requirements 7 2 2 1 Driver for the USB serial cable 7 2 2 2 ESP FLASH DOWNLOAD TOOLS 7 2 2 3 SUITABLE FIRMWARE 8 CHAPTER 3 HARDWARE SETUP 9 CHAPTER 4 FIRMWARE UPDATE 11 CHAPTER 5 SIMPLE AT COMMAND TEST 14 CHAPTER 6 FURTHER READING 16 CHAPTER 7 ORDERING CODES AND DOCUMENT REVISION 17 7 1 Ordering codes 17 7 2 Document revision 17 Page 3 of...

Page 4: ...ws applications Experienced ESP8266 users would find this document redundant The document structure is as follows All the required hardware and software for a basic setup is listed in CHAPTER 2 REQUIREMENTS In CHAPTER 3 HARDWARE SETUP there are specific details on how to set the hardware together and then the upgrade procedure The next chapter CHAPTER 4 FIRMWARE UPDATE gives the instruction on how...

Page 5: ... in order to change boot modes MOD WIFI ESP8266 MOD WIFI ESP8266 DEV MOD WIFI ESP8266 and MOD WIFI ESP8266 DEV are suitable for people already familiar with ESP8266 They are small affordable and fit custom designs perfectly However their stand alone usage might provide a challenge for beginners The main difficulty comes from the hardware adjustments you would need to perform in order to change the...

Page 6: ... of board s RXD and TXD are lower than the voltage levels of computer s TXD and RXD even if your computer has a native serial port The adapter takes care of the level adjustment most modern computers lack serial port The are two very important considerations to make when selecting the cable that would work for you the cable needs to fit the UART pins of the boards the cable has the proper driver s...

Page 7: ...ad and extract the latest version of FLASH DOWNLOAD TOOLS from the official Espressif web site The archive is usually located under Tools sub group at the web page with the ESP8266EX resources By the time of writing this document the page with resources can be found at http espressif com en products hardware esp8266ex resources We used FLASH DOWNLOAD TOOLS v2 3 during the preparation of this docum...

Page 8: ... usually located under the SDKs Demos sub group at the web page with the ESP8266EX resources By the time of writing this document the location is http espressif com en products hardware esp8266ex resources We used ESP8266 NONOS SDK v1 5 0 during the preparation of this document If you want to have the exact same behavior as us use ESP8266 NONOS SDK v1 5 0 You can download it from here https www ol...

Page 9: ...X RX and GND pins The connections are easier if the board has male UEXT connector like ESP8266 EVB The important part here is to connect the GND of the cable to the GND pin 2 of the UEXT connector Then TXD of the cable to RXD of the UEXT 4 Finally RXD of the cable to TXD of the UEXT 3 For connecting the USB serial cable we are interested only in pins 2 3 and 4 Follow the same idea when you use MOD...

Page 10: ...OLIMEX 2016 Upgrading ESP8266 Page 10 of 17 ...

Page 11: ...archive here is named esp8266_nonos_sdk_v1 5 1_16_01_08_0 rar 4 Extract the archive with FLASH DOWNLOAD TOOLS The archive we use here is named flash_download_tools_v2 4_150924 rar 5 Navigate inside the extracted folder and start the executable The one here is ESP_DOWNLOAD_TOOL_V2 4 exe The graphical interface of the tool would launch In case of a problem with the start of the application consider ...

Page 12: ...mex boards is 2MB 16Mbit and it is suggested to use the 16Mbit C1 option The BAUDRATE is 57600 The COM PORT is different depending on the system The serial cable here gets assigned COM3 so that is what we would assign Refer to the Windows Device Manager to find the COM port number of the cable of your system 8 At this point make sure that the ESP8266 board is in UART bootloader mode as suggested i...

Page 13: ... you would need to revert the jumpers back to default FLASH mode Else the firmware will not execute upon powering the board it would boot in UART bootloader mode 11 Voila The firmware and the AT command set are now updated We can head to the next chapter where we would test the firmware Page 13 of 17 ...

Page 14: ...each command By default most terminal programs add only carriage return when you send a string by pressing the keyboard button Enter In this document we would use TeraTerm Restart or power cycle the ESP8266 board in case it is still in UART mode We want the board to be in FLASH mode Connect the USB serial cable between the board and the personal computer Remember the COM port that the operating sy...

Page 15: ...We can send AT commands to the board now It is important to notice that the AT commands should be capitalized For example type AT and press Enter Then type AT GMR and press Enter You should receive the following response For the full AT command set it is always the best idea to refer to the official documentation released by Espressif Systems Page 15 of 17 ...

Page 16: ... http bbs espressif com The latest official resources and documentation for ESP8266EX can also be found here http espressif com en products hardware esp8266ex resources The best place to read more about the ESP8266 support for Arduino IDE is this one https github com esp8266 Arduino The custom ESP8266 firmware and examples provided by Olimex can be found here https github com OLIMEX ESP8266 The li...

Page 17: ...nsion module with ESP8266EX with male UEXT connector can be directly attached to existing Olimex boards with female UEXT MOD WIFI ESP8266 DEV the smallest ESP8266EX Olimex module perfect for embedding in own designs USB Serial Cable F affordable serial to USB cable with female leads SY0605E affordable power supply adapter 5V 1A 50Hz 220V suitable for most European countries You can also find a big...

Reviews: