Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.58 KB

File metadata and controls

45 lines (34 loc) · 1.58 KB

Prepare Nodemcu(ESP8226) for MicroPython

nodemcu

Control Device

  • run this command for check actual tty state.
ls /dev/tty.* 
  • On some pc with usb-c you could se device like:
ls /dev/cu.* 
  • Now connect device to USB, rerun the command and check changes in output. We should see like /dev/tty.SLAB_USBtoUART or something similar. If not go to this page and download CP210x USB driver.
IMPORTANT! Use only data usb cabel. I and a lot of people on this world spend many many... 
time connecting device with wrong cable only for powering.

Dependencies

  • Download MicroPython for our Nodemcu(esp8266) module. You can download it from this page. My latest choice was esp8266-20191220-v1.12.bin.

  • For deploying we will use esptool which can install it using pip:

pip install esptool

Deploy

  1. Erase flash.
esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash
  1. Deploy flash.
esptool.py --port /dev/tty.SLAB_USBtoUART --baud 115200 write_flash --flash_size=detect 0 esp8266-20191220-v1.12.bin

Original source