Skip to content

Flashing the Device

mattzzw edited this page Dec 1, 2018 · 3 revisions

Flashing the device

  • Connect serial port (RX/TX/GND)

  • Pull IO0 to GND during reset

  • I'm using /dev/cu.usbserial in the following commands, this may vary depending on the device you are using.

  • Optional - Backup flash:

esptool.py --port /dev/cu.usbserial --baud 460800 read_flash 0 2097152 orig_fw.bin

  • Erase flash:

esptool.py --port /dev/cu.usbserial --baud 460800 erase_flash

  • Flash micropython:

esptool -p /dev/cu.usbserial --baud 460800 write_flash 0 firmware-combined.bin

If you are getting errors, try a lower baud rate (230400 or 115200).

This firmware image is based on micropython 1.9.4 and already includes Picoweb and umqtt (robust and simple) as frozen byte code.

Clone this wiki locally