Skip to content

Creating a MicroPython Flash Image

mattzzw edited this page Dec 2, 2018 · 2 revisions

Creating your own flash image

I am using pfalcon's MicroPython fork

Using Vagrant

I found this adafruit howto to be very helpful:

ESP8266 & MicroPython SDK Virtual Machine

Using your own environment

Read Using the Toolchain of the esp-open-sdk.

Baking in modules into frozen bytecode

This is very beneficial for saving precious SRAM!

  • Be sure you have all the submodules initialized:

    • in ~/micropython: git submodule update --init
  • in ~/micropython/mpy-cross: make

  • clone picoweb

  • clone the micropython-lib

  • copy modules (picoweb, uasyncio, umqtt robust & simple) into ~/micropython/ports/esp8266/modules

  • in ~/micropython/ports/esp8266: make

Clone this wiki locally