Close

Flashing the NodeMCU firmware

A project log for All-In-One ESP8266 IFTTT Button

This is an IFTTT IoT button based on Noel Portugal's design but implemented on an ESP826-07 breakout board with a built-in button.

stopsendingmejunkstopsendingmejunk 12/31/2015 at 02:570 Comments

Hallelujah! I was able to finally flash the NodeMCU firmware!

First, I had to install esptool. Download esptool and run:

sudo python setup.py install
Next, I grabbed the latest release of NodeMCU (it will be a bin file) from here. I'm not sure if I need the float or integer version so I picked float. We'll see if it works.

Next I had to find the serial address of the board. I plugged it in via USB and typed this into terminal:

ls -l /dev/tty*
It was fairly obvious which device it is. Mine was named "tty.wchusbserialfa140"

Next I put the board into bootloader mode by pressing both the reset and flash buttons simultaneously. Let go of the reset button first, then the flash button. I ran the following command to flash the board:

python esptool.py -p /dev/tty.wchusbserialfa140 write_flash 0x00 /path/to/nodemcu_float_0.9.6-dev_20150704.bin
Be sure to replace with your actual device and path to the nodemcu firmware.

Discussions