# stm32-rs/stm32-rs

Embedded Rust device crates for STM32 microcontrollers

Repository: https://github.com/stm32-rs/stm32-rs
Canonical: https://ross.abutalabs.com/products/stm32-rs
Homepage: https://stm32-rs.github.io/stm32-rs/
Language: Python
License: Apache-2.0
License Family: permissive
Last push: 2026-07-15T18:16:06+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 92, release rhythm 8, longevity 100
- inputs: {"age_days": 3381, "days_push": 49, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1657, forks 262 (observed 2026-08-28T04:05:18.158850+00:00)

## What it is
A collection of Rust peripheral access crates (PACs) for all STM32 microcontroller families, generated from SVD files via svd2rust with community patches. It provides a safe, type-safe API to device peripherals, one crate per STM32 family with feature-gated modules per device.

## Use cases
- write Rust firmware for an STM32F4 microcontroller
- access STM32 peripherals like GPIO, UART, and SPI from Rust
- generate safe register-level APIs from SVD files
- find a peripheral access crate for STM32H7
- start embedded Rust development on STM32 boards
- patch vendor SVD files for better register documentation

## When to choose
- you are writing bare-metal or no_std Rust firmware for any STM32 chip
- you need low-level, register-level access to STM32 peripherals
- you want community-patched, more accurate SVD-derived APIs than vendor files

## When to avoid
- you want a high-level HAL with drivers rather than raw register access
- you are targeting non-STM32 microcontrollers
- you are programming in C/C++ rather than Rust

## Facets
- artifact type: library
- maturity: active
- function: embedded, sdk, developer-tools
- domain: embedded-systems, hardware, programming-languages
- platform: embedded, rust
- tags: stm32, rust, pac, svd2rust, microcontroller, peripheral-access-crate, embedded-rust

## Member repositories
- stm32-rs/stm32-rs (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:18.158850+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:44:47.521244+00:00, confidence not recorded.
  - readme: https://github.com/stm32-rs/stm32-rs (fetched 2026-08-28T04:05:18.158850+00:00, sha bd98c3118014)
  - homepage: https://stm32-rs.github.io/stm32-rs/ (fetched 2026-08-29T11:17:22.640440+00:00, sha 4da49831066d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
