stm32-rs VS Arduino

Compare stm32-rs vs Arduino and see what are their differences.

stm32-rs

Embedded Rust device crates for STM32 microcontrollers (by stm32-rs)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
stm32-rs Arduino
8 139
1,168 14,005
3.9% 0.5%
8.9 0.0
5 days ago 8 months ago
Python Java
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

stm32-rs

Posts with mentions or reviews of stm32-rs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-26.
  • STM32F4 Embedded Rust at the PAC: svd2rust
    1 project | dev.to | 6 Feb 2023
    Developing code at the PAC, well, requires a PAC crate for the targeted controller. For the STM32 there exists a repo for all the supported PACs. These PACs are all generated using a command line tool called svd2rust. svd2rust grabs what is called an svd file and converts it into a PAC exposing API allowing access to peripheral registers. An SVD file is an Extensible Markup Language (XML) formatted file describing the hardware features of a device, listing all the peripherals and the registers associated with them. SVD files typically are released by microcontroller manufacturers.
  • Next Rust Compiler
    6 projects | news.ycombinator.com | 26 Jan 2023
    In real world software, 99% of code is gluing preexisting lower-level functions together. In C/C++, the unsafe is implicit and needlessly covers everything. In Rust, the unsafe is only needed for the 1%.

    You can safely implement a doubly-linked list in Rust, using unsafe, and that list can offer a safe interface so that the next higher level of code does not need to use unsafe. In fact, one doubly-linked list implementation that provides a safe interface is in the Rust standard library: https://doc.rust-lang.org/std/collections/struct.LinkedList.... . Most people do not rewrite std::list in C++ either.

    Much of the Linux kernel really is the same: normal C code (maybe slightly more complicate than average userspace code, and definitely more carefully reviewed, but definitely not magic), that depends on extra carefully written lower level primitives that are _much_ more complicated internally than they appear from the outside (like the memory allocator, printk, RCU, etc.).

    Rust is powerful enough to have libraries for register level access to micro-controllers (e.g. https://github.com/stm32-rs/stm32-rs), that encode moderately complex access rules safely in the type system (e.g. which specific set of bits is read-only or write-only, with which particular values (with nice human-readable names, even!), in which particular states of a state machine depending on other bits), all while allowing bypassing the restrictions with a simple unsafe keyword without even giving up on the nice API.

    On the C/C++ side, I've used libopencm3, MBED, CMSIS, and everyone's favorite toy, Arduino. They're, in different ways, all much more mature and complete than anything Rust has today, but nothing comes even remotely close to Rust in terms of safety and long term potential.

  • NVIDIA Security Team: “What if we just stopped…
    2 projects | /r/embedded | 7 Nov 2022
    Packages: Where would I start with e.g. running Ada on a stm32? Resources are just a bit tough to find, and there's only a single stm32 package on Alire (which was inspired by cargo). But Rust has easy to find PACs and HALs for everything in the family, plus an official guide to setting up a project, including HIL debugging and unit testing on qemu, that takes about 15 minutes.
  • Cloning a Rare ISA Card to Use a Rare CD Drive
    3 projects | news.ycombinator.com | 3 Oct 2022
    > (I threw out all my C/C++ books about 15 years ago - oops!).

    The future is here for STM32: https://github.com/stm32-rs/stm32-rs

  • Is there a database of peripheral implementations for different STM32 MCU parts?
    2 projects | /r/stm32 | 5 May 2022
  • Writing embedded firmware using Rust
    10 projects | news.ycombinator.com | 19 Dec 2021
    Specifically these Rust register definitions are being auto-generated using SVD files published by the chip vendors (https://www.keil.com/pack/doc/CMSIS/SVD/html/index.html). For stm32 for example there are the auto-generated register definitions: https://github.com/stm32-rs/stm32-rs and then the HAL layers on top that try to build easy to use tools on top of the registers (e.g. an SPI or USART type with write and read functions). e.g. https://github.com/stm32-rs/stm32f4xx-hal for the stm32f4xx line
  • Any frameworks in Rust for developing on SiFive / ST / NXP boards?
    5 projects | /r/embedded | 11 Dec 2021
    For STM32, check out the Peripheral Access Crates by the stm32-rs ream. For higher-level access, I wrote This HAL library for STM32. Works on most newer variants, and includes examples for specific peripherals, and simple applications.
  • CMSIS libraries
    2 projects | /r/embedded | 6 Nov 2021
    Patches: https://github.com/stm32-rs/stm32-rs/tree/master/devices

Arduino

Posts with mentions or reviews of Arduino. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-31.
  • Which electronic kit should I get ? Absolute beginner
    1 project | /r/AskElectronics | 10 Dec 2023
    I learned from looking at example code in the Arduino IDE (a really good and free code editor https://www.arduino.cc/en/software). The Arduino IDE allows you to add more boards (like ESP32, ESP8266, Tiny etc.) so you're not limited to using only their Arduino boards.
  • Robot Tour Software Problems
    1 project | /r/scioly | 6 Dec 2023
    Based on what I am seeing from the Keystudio website, the software you need is just the Arduino IDE. This can be downloaded from Arduino.cc for most operating systems, including Mac OSX. You may need to install support for other boards or install libraries to make it work with the Arduino and hat included with the kit.
  • General information about getting started with the Pico SDK
    1 project | /r/raspberry_pi_pico_sdk | 6 Dec 2023
  • Save Data to Kintone with an ESP8266
    2 projects | dev.to | 31 Aug 2023
    Download and install the Arduino IDE. After installation, open the IDE to the first sketch.
  • I am a noob at this pls dont roast
    1 project | /r/ArduinoProjects | 25 May 2023
    Well, your first course of action would be to download the software - https://www.arduino.cc/en/software
  • How to begin
    1 project | /r/arduino | 13 May 2023
    You can download the IDE from here.
  • arduino leonardo
    1 project | /r/arduino | 13 May 2023
    You will need to download and install the Arduino IDE to do that. I would suggest the Legacy 1.8.x IDE or the Arduino Web Editor (which will still require that you install some software on your computer to help transfer the program to the Arduino).
  • How to program a Raspberry Pico to make a button box
    1 project | /r/simracing | 9 May 2023
    The software used for that video is the arduino IDE https://www.arduino.cc/en/software
  • [Arduino] Réflexions sur Arduino IDE 2.0?
    1 project | /r/enfrancais | 9 May 2023
  • Trying my hand at a brake
    1 project | /r/simracing | 13 Apr 2023
    Wiring: You're on the right track with your wiring assumptions. The red wire should connect to the 5V pin, the black wire to the GND pin, and the green wire to one of the analog input pins (A0-A5) on the Arduino Leonardo. For example, you can connect the green wire to the A0 pin. Programming the Arduino Leonardo: To translate the handbrake input to Assetto Corsa, you'll need to program the Arduino Leonardo to act as a USB HID (Human Interface Device). This will allow your computer to recognize it as a game controller. First, you'll need to install the Arduino IDE (Integrated Development Environment) on your computer. You can download it from the official website: https://www.arduino.cc/en/software

What are some alternatives?

When comparing stm32-rs and Arduino you can also consider the following projects:

libopencm3 - Open source ARM Cortex-M microcontroller library

vscodium - binary releases of VS Code without MS branding/telemetry/licensing

stm32-hal - This library provides access to STM32 peripherals in Rust.

tinyusb - An open source cross-platform USB stack for embedded system

stm32f4xx-hal - A Rust embedded-hal HAL for all MCUs in the STM32 F4 family

WLED - Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!

probe-run - Run embedded programs just like native ones

Makelangelo-software - Software for plotters - especially the wall-hanging polargraph also called Makelangelo.

hubris - A lightweight, memory-protected, message-passing kernel for deeply embedded systems.

arduino-create-agent - The Arduino Create Agent

esp32 - Peripheral access crate for the ESP32

Marlin - Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.