Skip to content

Instantly share code, notes, and snippets.

@HoriLiu
Created November 11, 2016 13:47
Show Gist options
  • Save HoriLiu/3bf808a37806dabd40455323c89139c5 to your computer and use it in GitHub Desktop.
Save HoriLiu/3bf808a37806dabd40455323c89139c5 to your computer and use it in GitHub Desktop.
SerriaOS terminal command in MacbookPro
0. Check How to flash firmware
1) https://learn.adafruit.com/building-and-running-micropython-on-the-esp8266/flash-firmware
2) https://github.com/nodemcu/nodemcu-devkit-v1.0
3) https://nodemcu.readthedocs.io/en/dev/en/flash/
1. ls /dev/tty* and find out used serial port
2. python esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash
esptool.py v1.3-dev
Connecting...
Running Cesanta flasher stub...
Erasing flash (this may take a while)...
Erase took 10.3 seconds
3. python esptool.py --port /dev/tty.SLAB_USBtoUART flash_id
esptool.py v1.3-dev
Connecting...
Manufacturer: e0
Device: 4016
4. python esptool.py --port /dev/tty.SLAB_USBtoUART write_flash -fm dio -fs 32m 0x00000 firmware.bin
esptool.py v1.3-dev
Connecting...
Running Cesanta flasher stub...
Flash params set to 0x0240
Writing 548864 @ 0x0... 548864 (100 %)
Wrote 548864 bytes at 0x0 in 47.6 seconds (92.3 kbit/s)...
Leaving...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment