Rust Microcontroller

Open-source Rust projects categorized as Microcontroller

Top 10 Rust Microcontroller Projects

  • tock

    A secure embedded operating system for microcontrollers

    Project mention: OxidOS Automotive | news.ycombinator.com | 2024-03-17

    Hi! This is Daniel from OxidOS Automotive (stating this for disclaimer purposes).

    Yes, our OS is based on TockOS, and our CEO (Alex Radovici) is #7 in the contributors list (https://github.com/tock/tock/graphs/contributors), with other colleagues contributing in the past years.

  • rtic

    Real-Time Interrupt-driven Concurrency (RTIC) framework for ARM Cortex-M microcontrollers

    Project mention: Is rust used for microchip coding? | /r/rust | 2023-06-27

    There's also RTIC which is another framework that makes concurrency trivial.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • cortex-m

    Low level access to Cortex-M processors

    Project mention: Rust fact vs. fiction: 5 Insights from Google's Rust journey in 2022 | news.ycombinator.com | 2023-06-27

    I do not have as strong of feelings as your parent, but:

    1. A lot of the APIs make use of the typestate pattern, which is nice, but also very verbose, and might turn many people off.

    2. The generated API documentation for the lower level crates relies on you knowing the feel for how it generates the various APIs. It can take some time to get used to, especially if you're used to the better documentation of the broader ecosystem.

    3. A bunch of the ecosystem crates assume the "I am running one program in ring0" kind of thing, and not "I have an RTOS" sort of case. See the discussion in https://github.com/rust-embedded/cortex-m/issues/233 for example.

  • cortex-m-quickstart

    Template to develop bare metal applications for Cortex-M microcontrollers

  • svd2rust

    Generate Rust register maps (`struct`s) from SVD files

  • nrf-hal

    A Rust HAL for the nRF family of devices

    Project mention: Rust newcomers are 70x less likely to create vulnerabilities than C++ newcomers [pdf] | news.ycombinator.com | 2023-11-06

    You should try again. I think that code is verbose because of the borrowing and because you're trying to do a one-liner. I use the nrf-hal library with the nrf52840, and the code reads pretty nicely. Here's an example:

    https://github.com/nrf-rs/nrf-hal/blob/master/examples/blink...

  • embedded-alloc

    A heap allocator for embedded systems

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • rustBoot

    rustBoot is a standalone bootloader written entirely in `Rust`, designed to run on anything from a microcontroller to a system on chip. It can be used to boot into bare-metal firmware or Linux.

  • chirp8-avr

    CHIP-8 implementation in Rust targeting AVR microcontrollers

    Project mention: Looking for Feedback on a Long-Term Plan | /r/EmuDev | 2023-06-05
  • avr-tester

    `#[test]` meets simavr!

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2024-03-17.

Rust Microcontroller related posts

Index

What are some of the best open-source Microcontroller projects in Rust? This list will help you:

Project Stars
1 tock 4,960
2 rtic 1,605
3 cortex-m 752
4 cortex-m-quickstart 712
5 svd2rust 653
6 nrf-hal 466
7 embedded-alloc 262
8 rustBoot 171
9 chirp8-avr 47
10 avr-tester 19
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com