espflash
svd2rust
espflash | svd2rust | |
---|---|---|
5 | 2 | |
441 | 658 | |
2.9% | 1.5% | |
8.7 | 9.1 | |
7 days ago | 3 days ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
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.
espflash
-
Unlocking Possibilities: 4 Reasons Why ESP32 and Rust Make a Winning Combination
Many of the crates maintained publicly for different embedded devices/microcontrollers have no official support from the manufacturers. Espressif on the other hand, has teams invested in supporting Rust for their devices. This makes a significant difference in the speed of development, documentation, and tooling mainly. Many of the Espressif team members are also available on the esp-rs matrix channel interacting with community members. In addition to the points mentioned, there have been really useful efforts like esp-template and espflash that make setting up an environment a breeze. This is all in addition to supporting development crates like the different device hals.
-
Embedded Rust on ESP32C3 Board, a Hands-on Quickstart Guide
espflash to flash the device (see espflash)
- Low FPS on ESP32 LCD
- Rust on Espressif chips – 18-10-2021
svd2rust
-
Rust on Espressif chips – 18-10-2021
https://github.com/rust-embedded/svd2rust
Additionally, I use vanilla VS Code and rust analyser so no need to use manufacturer supplied lock-in IDEs. There are many compiler targets to choose from for cross compilation and tools like probe-run to flash chips.
One major issue is lack of manufacturer provided code examples written in Rust. For that I rely on the Rust community. A typical example being nrf-hal for Nordic Bluetooth chips.
-
Rust programming language: We want to take it into the mainstream, says Facebook
In the case of rust you can use svd2rust to automatically generate types that represent registers on the hardware you are working with if you have a svd file. This can generate a lot of code depending on the hardware you have.
What are some alternatives?
rust-esp32-std-demo - Rust on ESP32 STD demo app. A demo STD binary crate for the ESP32[XX] and ESP-IDF, which connects to WiFi, Ethernet, drives a small HTTP server and draws on a LED screen.
EdenSCM - A Scalable, User-Friendly Source Control System. [Moved to: https://github.com/facebook/sapling]
std-training - Embedded Rust on Espressif training material.
sccache - Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
esp-template - A minimal esp-hal application template for use with cargo-generate
esp-idf-template - A "Hello, world!" template of a Rust binary crate for the ESP-IDF framework.
rtic - Real-Time Interrupt-driven Concurrency (RTIC) framework for ARM Cortex-M microcontrollers
M5ELite - Elite ship viewer on M5stack
rustc_codegen_cranelift - Cranelift based backend for rustc
rustzx-esp32 - ESP32 implementation of RustZX Spectrum emulator
HikariCore - A fork of Hikari's core obfuscation