To identify the serial port on which your board is located, you can use the Arduino IDE or enter the following command ls /dev/tty.* To write this article, I used the binary nodemcu_integer_0.9.6-dev_20150704.bin.Ĭonnect your ESP8266 NodeMCU board using an FTDI module (or a USB cable depending on the board you have). Download the version that corresponds to your project. Now that esptool is ready, download the latest firmware NodeMCU ESP8266 by visiting github. sudo python setup.py install Update firmware ESP8266 NodeMCU with esptool.py on macOS You will need to enter your password to allow the command to run. Now we will execute the script setup.py which allows to add the necessary dependencies (in particular pySerial).
We will recover esptool by cloning it from github with command. Let’s now go to the Document directory (or the directory of your choice, it is equal) like this cd ~/Documents Do not forget to leave python by entering exit (), quit () or Ctrl + D before continuing. If this is not the case install python 2.7 by visiting here. Type "help", "copyright", "credits" or "license" for more information. If everything is properly installed you should have a message like this To find out if python is already present on your machine, simply type the python command in the Terminal.
Esp8266 flash tool for mac mac os#
Provide an FTDI module (or cable) if your module is equipped with a programming interface via a COM port.Įsptool.py requires Python 2.7 which is normally the default on Mac OS X. You can find it in applications, in the Utilities folder, or by entering Terminal in Spotlight. If you are a beginner, we will use the Terminal to perform all the steps of this tutorial.