Skip to content

Getting Started on OSX

Philip (flip) Kromer edited this page Sep 2, 2015 · 9 revisions

Getting started with the NodeMCU devkit on OSX:

  • You will need to install the SiLabs serial driver for the chip (direct link)

  • To connect to it, first install CoolTerm

    • pick Options, then select the /dev/cu.SLAB_USBtoUART connection that those drivers created.
    • 9600 baud worksforme
  • If on connection, the device says "Please run file.remove("user.lua") before first use." in a loop, enter the commands:

    file.remove("user.lua")
    node.restart()
    
  • CoolTerm is good for direct simple communication, but for working with the device you want ESPlorer and its associated eBook by Rui Santos.

  • To flash the firmware you need special flags.

    • Get the appropriate NodeMCU firmware

    • Install esptool:

      git clone https://github.com/themadinventor/esptool.git 
      cd esptool
      python ./setup.py
      
    • Hold down the "FLASH" button on the device and hit the "RST" button while doing so.

    • Substituting in the correct path to the firmware file you downloaded, run

      python ./esptool.py --port=/dev/cu.SLAB_USBtoUART  write_flash  -fm=dio -fs=32m 0x00000 ../nodemcu-master-8-modules-2015-09-01-02-42-13-float.bin
      
    • Unplug the device and replug it.

    • Connect for great justice

Happy Hacking!

Clone this wiki locally