Build from Source
Developer guide · 5 min read
Find the public source, supported build paths, and project documentation for both M1 components.
Public repositories
| Component | Repository |
|---|---|
| M1 Firmware | github.com/Monstatek/M1 |
| ESP32 Core | github.com/Monstatek/MonstaTek-Esp32-Core |
Clone only the public repository for the component you want to build. Read its license and repository instructions before compiling or flashing.
Building M1 Firmware
The M1 Firmware repository includes STM32CubeIDE, command-line, and VS Code material.
- Open the public M1 repository.
- Start with its README and
documentation/mbt.md. - For a command-line build, install the listed ARM toolchain, CMake, Ninja, and SRecord requirements, then use the repository build script.
- On macOS, use the public
setup_macos.shsupport where appropriate. - For VS Code or STM32CubeIDE, follow the public editor-specific instructions and select the current project target.
Building ESP32 Core
Use the README and release documentation in the public ESP32 Core repository. Its build and flash process is separate from the STM32 firmware process.
Separate components
A successful build of one component does not build or update the other. The current user-facing versions are M1 Firmware 0.8.1.0 and ESP32 Core 1.0.
Before flashing a custom build
- Keep a known-good official release available for recovery.
- Confirm the target, toolchain, and flash method in the public repository.
- Back up any user files you need from the microSD card.
- Use the repository issue tracker for reproducible source-build problems.