Skip to content

Building for ESP32

Build MicroPythonOS for ESP32 microcontrollers, such as supported hardware.

Prerequisites

Clone the required repositories:

mkdir ~/MicroPythonOS
cd ~/MicroPythonOS
git clone https://github.com/MicroPythonOS/MicroPythonOS.git
git clone https://github.com/MicroPythonOS/freezeFS
git clone https://github.com/cnadler86/micropython-camera-API
echo 'include("~/MicroPythonOS/lvgl_micropython/build/manifest.py")' >> micropython-camera-API/src/manifest.py
git clone https://github.com/MicroPythonOS/lvgl_micropython
git clone https://github.com/MicroPythonOS/secp256k1-embedded-ecdh

Build Process

  1. Navigate to the Repository:

    cd ~/MicroPythonOS/MicroPythonOS

  2. Build for Production (includes preinstalled files):

    bash ./scripts/build_lvgl_micropython.sh esp32 prod

  3. Build for Development (no preinstalled files):

    bash ./scripts/build_lvgl_micropython.sh esp32 dev

Flashing to ESP32

  1. Put your ESP32 in bootloader mode (long-press the BOOT button if running MicroPythonOS).

  2. Flash the firmware:

    bash ./scripts/flash_over_usb.sh

  3. For a development build, install files manually:

    bash ./scripts/install.sh

Notes