In case you want to upgrade your firmware for baud rate support (and you have the binary) or worst case your ESP8266 is in bad state because of wrong wiring or programming the following steps will help you to do a hardware reset of ESP8266 and download a fresh (and upgraded) firmware on the same.
Needed Components
- ESP8266 (duh)
- USB to Serial Converter with Pins for TX, RX, VCC and GND
- Breadboard
- Two Push buttons
- Two Resistors (2.2K value)
- Arduino Uno/Mega (if your USB to Serial does not supply 3.3V)
- Lots of wires
Connections
USB To Serial | Uno | Breadboard | Breadboard | ESP8266 |
TX | RX | |||
RX | TX | |||
GND | GND | |||
GND | Switch 1 input | |||
GND | Switch 2 input | |||
Switch 1 output | GPIO ‘0’ | |||
Switch 2 output | Point A | |||
Point A | RST | |||
Point A (Resistor 2.2k) | Point B | |||
3.3V | VCC | |||
3.3V | Point B | |||
Point B (Resistor 2.2k) | CH_PD |
Steps
- Do the above connections and connect the USB to Serial to PC
- When pressing the Switch 1 (PROG), press and release switch 2 (RST). The blue LED in ESP8266 flashes momentarily.
- Without altering the connection, do the steps below
- Download the package available here [wpdm_package id=’579′]
- Unzip it to find “esp8266_flasher.exe” and “v0.9.2.2 AT Firmware.bin”
- In your PC, open device manager and find what COM port is associated to your USB to Serial
- If the number is more than 6, like COM20 for example, double click and change the COM port to something within COM6 like say COM 2
- Double click the “esp8266_flasher.exe” application
- Click on ‘Bin’ and browse to the “v0.9.2.2 AT Firmware.bin” file
- Change COM0 to the COM port that you found/gave in step 6
- Click ‘Download’ and you should see ‘Erasing…’ and eventually programming in the log box
- Once it is done (after few minutes), you can disconnect and check your ESP8266
- NOTE: You might have to connect the ESP8266 using 115200 baud
- It should respond for AT commands and also support AT+CIOBAUD commands now