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
-
Navigate to the Repository:
cd ~/MicroPythonOS/MicroPythonOS
-
Build for Production (includes preinstalled files):
bash ./scripts/build_lvgl_micropython.sh esp32 prod
-
Build for Development (no preinstalled files):
bash ./scripts/build_lvgl_micropython.sh esp32 dev
Flashing to ESP32
-
Put your ESP32 in bootloader mode (long-press the BOOT button if running MicroPythonOS).
-
Flash the firmware:
bash ./scripts/flash_over_usb.sh
-
For a development build, install files manually:
bash ./scripts/install.sh
Notes
- Ensure your ESP32 is compatible (see Supported Hardware).
- Refer to Release Checklist for creating a production release.