MicroPython Tutorial

Getting Started with MicroPython

View the Project on GitHub

This is the source of the software flasher stub.

esptool.py loads the flasher stub into memory and executes it to:

Thanks to Cesanta who provided the original ESP8266 stub loader upon which this loader is based.

To Use

The stub loader is already automatically integrated into esptool.py. You don’t need to do anything special to use it.

To Build

If you want to build the stub to test modifications or updates, here’s how:

To Test

To test the build stub, you can either copy-paste the code from build/stub_flasher_snippet.py into esptool.py manually. Or there are some convenience wrappers to make testing quicker to iterate on: