Giter Club home page Giter Club logo

docker-esp8266-micropython's Introduction

docker-esp8226-micropython

A MicroPython for the ESP8226 microcontroller development environment

======================

A Docker image for building the Micropython firmware for ESP8266 boards.

The underlying ESP Open SDK takes a significant time to build extending the build time of the docker image. Once the initial build is finished however, the resulting container can be used to build additional firmware binaries with shorter build times.

Requires:

  • docker engine
  • esptool.py
  • picocom

Build Instructions

Building the docker image compiles the ESP Open SDK, the MicroPython interpreter shell for unix and the vendor provided firmware binary of Micropython for the ESP8266 boards. To specify a particular version of MicroPython provide the docker --build-arg option with the VERSION argument.

bash ./projctl build

or

docker build -t micropython --build-arg VERSION=v1.8.6 .
docker create --name micropython micropython

Once the docker image is built the firmware can be copied to the host machine.

bash ./projctl copy

or

docker cp micropython:/micropython/esp8266/build/firmware-combined.bin firmware-combined.bin

Flash the board

Erase the board's flash to ensure a clean write:

bash ./projctl erase

Write the firmware to the board's flash:

bash ./projctl write

or

esptool.py --port $SERIAL_PORT --baud 115200 write_flash --verify --flash_size=detect 0 firmware-combined.bin

Additional functionality

Connecting to the serial console:

bash ./projctl connect

Access the container's shell:

bash ./projctl manual

or

docker run --rm -it micropython /bin/bash -l

Access the MicroPython interpreter shell for unix:

bash ./projctl unix

docker-esp8266-micropython's People

Contributors

bradenm avatar enqack avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.