Skip to content
⌘K

modm

modm: a C++23 library generator for AVR and ARM Cortex-M devices.

health 89contrib 651.0k

Overview & architecture

C++ standard
C++23
Build systems
–
License
MPL-2.0
Languages
C++
Last release
2026q3 · Oct 1, 2026

Repository activity

snapshot Nov 23, 2026
GitHub stars
latest
1.0k▲ 14
Merged PRs (30d)
latest
41▲ 41
Contributors (90d)
latest
3
Issue first response p50
–
No snapshots yet.
11 open issues30 open PRs213 commits (30d)

Recent notable activity

  • Merged PR
    [fiber] Implement hosted fibers with threads

    Follow-up to #1437, where I explicitly left out hosted, because TLS there is annoying: the compilers hardcode it to the OS thread. So instead of fighting that, every hosted fiber is now simply an OS thread, and the context switch hands…

    salkinium#1439 · by salkinium
  • Merged PR
    Power-loss safe Zephyr Memory Storage (ZMS) on block devices

    We need somewhere to keep settings and the occasional fault dump in flash, so I compared FlashDB and Zephyr's ZMS (Zephyr Memory Storage). It turns out that both lose data after the very first power loss in the wrong place, lol. So I wrote…

    salkinium#1431 · by salkinium
  • Merged PR
    Add STM32C5, STM32G5 and STM32H7P support with NUCLEO-C5A3ZG and NUCLEO-G564RE

    ST released three new families with the new HAL2 packs, so here's the port of the STM32C5, STM32G5 and STM32H7P plus BSPs for the two Nucleos I could get my hands on. The C5 is the funny one: no PLL at all, just the new PSI clock source.…

    salkinium#1432 · by salkinium
  • Merged PR
    Flash driver for all STM32 families

    Our flash driver only knew F1, F4, G0, G4 and H7, all squashed into one template with %% if family everywhere, and its geometry was hand-written per family. So I surveyed the FLASH registers of all CMSIS headers (26 register signatures)…

    salkinium#1424 · by salkinium
  • Merged PR
    Add the NUCLEO-L4R5ZI, -U5A5ZJ-Q, -H7A3ZI-Q, -H7S3L8 and WeAct G030F6 boards

    I compared the hardware CI board list with our BSPs, and it turns out I own a bunch of boards that modm doesn't know about yet. So here they are, plus the three bugs that fell out while running all the examples on them. [x] NUCLEO-L4R5ZI…

    salkinium#1428 · by salkinium
  • Merged PR
    Add a DMA logic analyzer for one to four GPIO ports

    The tree had no way to capture a parallel bus without loading the CPU: the GpioSampler uses interrupts and can only record pins through EXTI, so it cannot sample the same pin number on two ports at once, which is exactly what I2C and SPI…

    salkinium#1404 · by salkinium
  • Merged PR
    Replace the TLSF and block heaps with the Zephyr heap and o1heap

    I stress tested our heap allocators on the hardware CI and, well, they had some bugs. calloc(n, m) only allocated n bytes with the block and TLSF heaps (whoops), memalign wasn't wrapped at all, aligned new ignored the alignment everywhere,…

    salkinium#1420 · by salkinium
  • Merged PR
    Add a DMA driver for the STM32 GPDMA, HPDMA and LPDMA

    The STM32H5, H7R/S, U3 and U5 have the new linked-list DMA controllers (GPDMA, HPDMA, LPDMA) and modm had no DMA driver for them at all. This adds one with the same API as the old STM32 DMA driver, so the SPI DMA wrapper just works. Fixes…

    salkinium#1411 · by salkinium
  • Merged PR
    [driver] Add USB3803 USB 2.0 hub driver

    Adds a driver for the Microchip USB3803, a 3-port high-speed USB 2.0 hub with battery charging and a bypass switch for mobile devices. The USB3803 has a sharp edge: its I2C serial port is only available from the release of RESET_N until…

    salkinium#1406 · by salkinium
  • Merged PR
    [stm32] Add STM32H7R/S support and WeAct-H7R3Z8 board

    The STM32H7R/S looks like an H7 on the outside, but it has its own RCC (CDCFGR/BMCFGR/APBCFGR prescalers, one PLL source for all PLLs, a write-once SMPS supply config) and a bunch of renamed peripherals, so it was ignored until now. I…

    salkinium#1396 · by salkinium
  • Merged PR
    Add an eFuse and 1-Wire EEPROM driver

    Plus a fix for flash aliased flash memory

    salkinium#1378 · by salkinium

Stories

Maintainers & organizations

every claim links to its source

Maintainers

No maintainers recorded yet.

Top contributors

Releases & changelog

  • modm 2026q3pre-release / patch

    This release covers everything from 2026-07-01 and has been tested with avr-gcc v14.2.0 from upstream and arm-none-eabi-gcc v14.2.1 from xpack. Breaking changes: modm::math::crc8_ccitt discarded the MSB of every input byte on non-AVR targets and now computes the correct CRC. This changes the AMNB header CRCs on the…

  • modm 2026q2pre-release / patch

    This release covers everything from 2026-04-19 and has been tested with avr-gcc v14.2.0 from upstream and arm-none-eabi-gcc v14.2.1 from xpack. Features: Support for watchdog timer on nRF51, nRF52 and nRF53 device families. Fixes: Fix GenericTimeout::wait() to wait while timer is armed. Reset fiber stop token on fiber…

  • modm 2026q1pre-release / patch

    This release covers everything from 2026-01-01 and has been tested with avr-gcc v14.2.0 from upstream and arm-none-eabi-gcc v14.2.1 from xpack. Breaking changes: The RCC APIs for STM32C0, F0, F1, F2, F3, F4, G0, L0 and U5 have been migrated to the new naming and configuration API. Existing clock setup code on these…

  • modm 2025q4pre-release / patch

    This release covers everything from 2025-10-01 and has been tested with avr-gcc v14.2.0 from upstream and arm-none-eabi-gcc v14.2.1 from xpack. Features: libeigen integration added. Support for precision() and width() added to IOStream. Integrated Projects: CMSIS Core upgraded from v6.1.0 to v6.2.0. Eigen added at…

  • modm 2025q3pre-release / patch

    This release covers everything from 2025-07-01 and has been tested with avr-gcc v14.2.0 from upstream and arm-none-eabi-gcc v14.2.1 from xpack. Breaking changes: Protothreads and Resumables are removed! They were announced as deprecated in 2024q4 and now all usage of them has been removed from modm's code base. The…

  • modm 2025q2pre-release / patch

    This release covers everything from 2025-04-01 and has been tested with avr-gcc v14.2.0 from upstream and arm-none-eabi-gcc v14.2.1 from xpack. Features: Support for GCC14. Support for 48 more STM32 devices. Integrated Projects: ETL upgraded from v20.39.4 to v20.40.0. FatFS upgraded from v0.15a to v0.15a_p1. JSON…

  • modm 2025q1pre-release / patch

    This release covers everything from 2025-01-01 and has been tested with avr-gcc v13.2.0 from upstream and arm-none-eabi-gcc v13.2.1 from xpack. Features: Add missing HSI48-related functionality for some STM32. Enable Cortex-M7 I/D-Cache via lbuild. Speed up startup copying and zeroing of data sections. Fixes: Fix…

  • modm 2024q4pre-release / patch

    This release covers everything from 2024-10-01 and has been tested with avr-gcc v13.2.0 from Upstream and arm-none-eabi-gcc v13.2.1 from xpack. Breaking changes: Protothreads and Resumables are deprecated! Please use Fibers instead! Note that you can disable the deprecation by resetting the option…

  • modm 2024q3pre-release / patch

    This release covers everything from 2024-07-01 and has been tested with avr-gcc v12.2.0 from Upstream and arm-none-eabi-gcc v12.2.1 from xpack. Breaking changes: Deprecate modm::allocator::Dynamic in favor of std::allocator. STM32 FDCAN queue mode is switched from queue to FIFO mode. Features: Add empty polyfill for…

  • modm 2024q2pre-release / patch

    This release covers everything from 2024-04-01 and has been tested with avr-gcc v12.2.0 from Upstream and arm-none-eabi-gcc v12.2.1 from xpack. Breaking changes: The STM32 UART peripheral moves the buffer configuration from lbuild to C++. Renames modm::fiber::yield() to modm::this_fiber::yield(). Renames…

Contribution opportunities

0 published

No published opportunities

Cards are published only for real, open, unassigned issues with maintainer engagement. Contribution scanning is off for this project.

Why this score

Health 89Contribution friendliness 65computed 20h ago
  • Activity1.00
    41 merged PRs in 30 days (full marks at 20); 205 commits in 30 days (full marks at 60) [health score: no data for backlog pressure; weights renormalized]health
  • Onboarding0.25
    has CI; missing contributing guide, mainstream build (CMake/Bazel/Meson), docs site [contrib score: no data for entry points; weights renormalized]contrib
  • Maintainer responsiveness1.00
    median PR merge time 8 h (full marks within 72 h, zero after 60 days) [health score: no data for backlog pressure; weights renormalized] [contrib score: no data for entry points; weights renormalized]healthcontrib
  • Release cadence1.00
    last release 53 days ago (full marks within 90, zero after 730); 4 releases in 365 days (full marks at 4) [health score: no data for backlog pressure; weights renormalized]health
  • Contributor breadth0.49
    3 unique contributors in 90 days (full marks at 25); top contributor has 52% of commits; stars count for at most 5% of this signal [health score: no data for backlog pressure; weights renormalized]health

Each signal is normalized to 0–1 with fixed thresholds; scores are weighted sums × 100. Stars are not an input.