Skip to content

Micropython: Installation

Leo Vidarte edited this page Jan 11, 2019 · 3 revisions

Download the firmware

$ curl -O -J http://micropython.org/resources/firmware/esp8266-20180511-v1.9.4.bin

Firmware install

$ pip install esptool
$ esptool.py --port /dev/ttyUSB0 erase_flash
esptool.py v1.3
Connecting....
Running Cesanta flasher stub...
Erasing flash (this may take a while)...
Erase took 9.2 seconds
$ esptool.py -p /dev/ttyUSB0 write_flash -fm dio -fs 32m 0x00000 esp8266-20180511-v1.9.4.bin 
esptool.py v1.3
Connecting....
Running Cesanta flasher stub...
Flash params set to 0x0240
Wrote 589824 bytes at 0x0 in 51.3 seconds (92.0 kbit/s)...
Leaving…

Helpers

There is two script to do this

$ bin/esptool-install.sh
$ bin/micropython-download-n-flash.sh