Skip to content

Instantly share code, notes, and snippets.

@kurtzilla
Last active March 29, 2018 00:49
Show Gist options
  • Save kurtzilla/b3fa0006f5fc529b1c301ecda15f3851 to your computer and use it in GitHub Desktop.
Save kurtzilla/b3fa0006f5fc529b1c301ecda15f3851 to your computer and use it in GitHub Desktop.
This is what I found to reflash on OSX...
(...assuming you have python installed...)
install the esptool
$ pip install esptool
determine the port where your device is connected. For me this was:
/dev/cu.SLAB_USBtoUART
To help find:
$ ls -la /dev/*USB*
(if you have been using mongoose-os, it is the same port that you use there)
Then run the esptool to get some basic info on your device. Record this info as it will be helpful when reading through the rest of the docs.
$ esptool.py --port /dev/tty.SLAB_USBtoUART flash_id
>>>
esptool.py v2.3.1
Connecting........_
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Uploading stub...
Running stub...
Stub running...
Manufacturer: c8
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...
>>>
Get the flash tool from here:
https://github.com/marcelstoer/nodemcu-pyflasher/releases
select the binary for your system
Get the firmware image:
https://nodemcu.readthedocs.io/en/master/en/build/
** be sure to read through the instructions here
I went with the cloud build and used the following modules:
encoder file gpio http i2c mqtt net node ow pwm spi tmr uart websocket wifi
Follow the instructions and if you have done everything correctly, you will get a page with a "Strike!" message.
Wait for the confirm email (took less than 5 minutes) and you will be provided with 2 links, one for an integer build and one for a float build.
** The integer build has a smaller footprint
Start up the firmware tool, enter in your serial port and select the firmware file.
Read the info on which flash mode to use and hit the "Flash NodeMCU" button
The firmware process should only take a few minutes.
** some code examples for some common sensors
**http://nodemcu.readthedocs.io/en/master/en/modules/adc/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment