Rust Microcontroller

Open-source Rust projects categorized as Microcontroller

Top 10 Rust Microcontroller Projects

Microcontroller
  • tock

    A secure embedded operating system for microcontrollers

  • Project mention: A secure embedded operating system for microcontrollers | news.ycombinator.com | 2024-06-02
  • 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.

    InfluxDB logo
  • 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.

  • 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

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • 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

  • 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).

Rust Microcontroller discussion

Log in or Post with

Rust Microcontroller related posts

  • When would you (not) recommend Go over Rust?

    2 projects | /r/golang | 10 Jul 2023
  • RTIC (The hardware accelerated Rust RTOS) releases v2.0.0!

    1 project | /r/rust | 1 Jun 2023
  • AvrTester: write Rust-based tests for your AVR firmware! v0.2.1

    1 project | /r/rust | 8 Mar 2023
  • When is the right time to change jobs?

    1 project | /r/embedded | 19 Feb 2023
  • Question: Elegant way of getting a 'static reference?

    2 projects | /r/rust | 6 Dec 2022
  • Safely obtain static mutable reference in no_std

    1 project | /r/rust | 11 Nov 2022
  • My first embedded project: OpenEMC -- an embedded management controller written in Rust

    2 projects | /r/rust | 30 Sep 2022
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 22 Jun 2024
    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. Learn more →

Index

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

Project Stars
1 tock 5,154
2 rtic 1,677
3 cortex-m 774
4 cortex-m-quickstart 750
5 svd2rust 668
6 nrf-hal 480
7 embedded-alloc 282
8 rustBoot 192
9 chirp8-avr 47
10 avr-tester 20

Sponsored
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.
www.influxdata.com