Fail-safe signed updates
ECDSA P-256 verification before erase and on boot, watchdog trial boot, and rollback after 3 failures.
Open-source firmware platform for STM32 microcontrollers.
MIT-licensed STM32 foundation with a signed A/B bootloader, five C and Rust reference apps, hardware validation, and factory tooling. MIT licensed.
After 25+ years in embedded systems (10+ in consulting), we kept rebuilding the same groundwork on every client project: signed A/B bootloaders, field updates, RTOS setup, diagnostics, and factory tooling.
Lyra packages that foundation cleanly for STM32 microcontrollers—signed A/B bootloader, C/Rust apps, validation, and factory tools—so teams reach product features, hardening, and release sooner.
Applications Connected sensors, industrial controllers, and field-updatable MCU products.
Platform overview →ECDSA P-256 verification before erase and on boot, watchdog trial boot, and rollback after 3 failures.
Identical reference app across FreeRTOS, Zephyr, and Embassy on one bootloader.
Bench station and factory firmware provision blank boards into updatable units.
Supported silicon families and the verification reference board. Links open vendor docs.
Four STM32 subsystems: bootloader-gui flashes bootloader, which boots five C/Rust apps in A/B slots; validation-gui drives validation-firmware; and factory-data-gui / factory-station provision via factory-firmware. Hover to trace; click to jump.
10 public repositories across bootloader, applications, and factory.
Signed A/B bootloader anchoring every Lyra image, paired with its desktop flasher.
Python · PySide6
Desktop utility for building, signing, and flashing bootloader and app images over SWD and UART.
C · bare-metal
Bare-metal STM32 A/B bootloader verifying signatures before erase and on every boot.
Five functionally identical C and Rust reference apps across FreeRTOS, Zephyr, and Embassy on the same A/B bootloader.
C · FreeRTOS
C/FreeRTOS reference demonstrating A/B confirmation, watchdog supervision, and HWLINK.
C · Zephyr
C/Zephyr reference aligning devicetree partitions with Lyra's A/B flash map.
Rust · FreeRTOS
Hybrid no_std Rust application logic on FreeRTOS with minimal C startup and HAL glue.
Rust · Zephyr
Rust reference built on Zephyr's official Rust module with minimal C peripheral glue.
Rust · Embassy
Pure no_std Rust application on the Embassy async executor with HWLINK support.
Manufacturing bench tools connecting factory-station and factory-data-gui to factory-firmware.
Python · PySide6
Guided bench app (HWVAL Factory) taking blank boards through provisioning, validation, and registration.
Python · CLI
Per-unit CSV-to-binary generator for .sys, .cal, and .diag records; core and CLI now merged into factory-station.
C · FreeRTOS
Slot A manufacturing image communicating with factory-station over ST-LINK COM to write per-unit records.
Start with the bootloader. Reference target: STM32F767ZI (container build, SWD flash via ST-LINK).
git clone https://github.com/soccentric-lyra/bootloader.git
cd bootloader
scripts/build.sh # build in stm32-dev container
make flash # flash build/boot.elf over SWD
make test # host, Python, and contract testsThen flash any C or Rust reference app into slot A or B. Full steps in the bootloader README.
Issues, hardware notes, and pull requests are welcome. Target each repository's default branch (master).
MIT. Third-party software that the firmware builds against keeps its own licenses.
Lyra is MIT-licensed and ready to use on its own. If you need engineering support for custom hardware, peripheral integration, or delivery, we are glad to work with you.
SoCcentric · Sandesh Ghimire · 25+ years in embedded systems