Friday, 12 February 2016

esp8266 firmware update ardunio on mac

1. connect you arduino with esp8266 first (you don't need other chips or shields, just esp8266 and arduino which must has 3.3v)

Overview of connections:
ESP8266:____________ Arduino:
GND -------------------------- GND
GP2 -------------------------- Not connected (open)
GP0 -------------------------- GND
RXD -------------------------- RX
TXD -------------------------- TX
CHPD ------------------------ 3.3V
RST -------------------------- Not connected (open)
VCC -------------------------- 3.3V

2 Download the new firmware:

3. download the esptool:
(download zip)

unzip it and open a terminal and visit the folder and install it by:

sudo python install

then copy the firmware file into the same folder (change the filename of the .bin file to boot1.2bin)

run below line it will flash the file into your esp8266

./ --port /dev/cu.usbmodem1451 write_flash 0x00000 boot1.2.bin

/dev/cu.usbmodem1451 is my port, check what is your port (you can see that on arduino)

you will get this error if you are not lucky:

A fatal error occurred: Failed to connect to ESP826


1. Double check your wire connections are right.
2. disconnect usb cabble and rerun the command immediately
3. try step 2 more times.

No comments:

Post a comment