stm32-nucleo-f401re
Rust projects and templates for the STM32Nucleo-F4 development board (by apollolabsdev)
nrf-hal
A Rust HAL for the nRF family of devices (by placrosse)
stm32-nucleo-f401re | nrf-hal | |
---|---|---|
15 | 1 | |
56 | 0 | |
- | - | |
4.0 | 1.8 | |
5 months ago | 11 months ago | |
C | Rust | |
MIT License | Apache License 2.0 |
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.
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-nucleo-f401re
Posts with mentions or reviews of stm32-nucleo-f401re.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-03.
-
Embassy on ESP: GPIO
📝 Although I followed the documentation to set up my first project, it wasn't all smooth sailing. It was mainly had to do with configurations/settings of configuration (toml) files. I figure this has to do with embassy still being considered to be experimental. Set up I managed to get working is available up in my git repo.
-
Recommend rust blogs
https://apollolabsblog.hashnode.dev/ has a lot of embedded rust, mostly tutorial style.
-
STM32F4 Embedded Rust at the PAC: Creating Hardware Abstractions
Here is the full code for the library/abstraction implementation described in this post. You can additionally find the full project and others available on the apollolabsdev Nucleo-F401RE git repo.
-
What the HAL? The Quest for Finding a Suitable Embedded Rust HAL
Git Repo (All Code Examples) → Link
-
Rust FFI and cbindgen: Integrating Embedded Rust Code in C
As might be obvious already, a project needs to be created, in this case, however, it's a library crate (lib.rs) that we need to include rather than a binary crate (main.rs). Additionally, I will need to configure the project for the hardware I need. To make things easier, I grabbed an existing template for a GPIO project I've created in the past and modified it. I simply deleted main.rs and replaced it with an empty lib.rs as a first step. Finally, cbindgen also requires that we add a cbindgen.toml the configuration file which can be empty for starts. Afterward, the project folder tree looks like this:
-
Rust FFI and bindgen: Integrating Embedded C Code in Rust
📝 Note: The code and project folders refrenced used in this post are available on the apollolabsdev Nucleo-F401RE git repo.
-
Sharing Data Among Tasks in Rust Embassy: Synchronization Primitives
Please note that the full code in this post is available on the apollolabsdev Nucleo-F401RE git repo. Additionally, the hardware used in this post is the Nucleo-F401RE board.
-
Embedded Rust & Embassy: PWM Generation
All the code presented in this post in addition to instructions for the environment and toolchain setup are available on the apollolabsdev Nucleo-F401RE git repo. Note that if the code on the git repo is slightly different then it means that it was modified to enhance the code quality or accommodate any HAL/Rust updates.
-
Embedded Rust & Embassy: GPIO Button Controlled Blinking
📝 Although I followed the documentation to set up my first project, it wasn't all smooth sailing. It was mainly had to do with configurations/settings of configuration (toml) files. I figure this has to do with embassy still being considered to be experimental. Set up I managed to get working is available up in my git repo.
-
4 Simple Steps for Creating a Platform Agnostic Driver in Rust
Git Repo (All Code Examples) → Link
nrf-hal
Posts with mentions or reviews of nrf-hal.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-30.
-
What the HAL? The Quest for Finding a Suitable Embedded Rust HAL
Typestate-free HALs: This is in exchange for better ergonomics as the author claims. Only two HALs fall in this category right now which are the STM32-HAL & nRF-HAL.
What are some alternatives?
When comparing stm32-nucleo-f401re and nrf-hal you can also consider the following projects:
awesome-embedded-rust - Curated list of resources for Embedded and Low-level development in the Rust programming language
stm32-hal - This library provides access to STM32 peripherals in Rust.
crates.io - The Rust package registry
this-week-in-rust - Data for this-week-in-rust.org
rust-embedded-driver - A rust-embedded driver example / template