rtic
svd2rust

rtic | svd2rust | |
---|---|---|
15 | 3 | |
1,904 | 746 | |
2.5% | 2.3% | |
8.2 | 8.4 | |
9 days ago | 5 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.
rtic
-
Snowdrop OS – a homebrew operating system from scratch, in assembly language
Fuchsia has a crap load of wild ideas. Microkernel, capabilities, weird app installation system (I think they're trying to make apps more like websites).
https://rtic.rs/ is a pretty cool idea for an embedded RTOS (sort of).
Honestly though there's still stuff in Plan 9 that is way more advanced than what Linux does, e.g. https://9p.io/sys/doc/lexnames.html
-
Is rust used for microchip coding?
There's also RTIC which is another framework that makes concurrency trivial.
- Would generators be useful for embedded?
-
RTIC (The hardware accelerated Rust RTOS) releases v2.0.0!
Github here: https://github.com/rtic-rs/rtic
-
Are there universities that teach Rust?
At Telecom Paris, one of the top engineering schools in France, we teach Rust to undergraduate and graduate students who specialize in Embedded Systems. They get to use Rust and RTIC on STM32 based boards, and they also use Embassy for some projects.
-
When is the right time to change jobs?
If you want something more cutting edge. Try embedded Rust and checkout RTIC. I don't know if it's the real next thing. But i guess it could be fun to try.
-
In which circumstances is C++ better than Rust?
RTIC is still going strong, they are working on a 2.0 release at the moment :). There's also now embassy which provides an async runtime (and a ton of other nice things) for embedded as well :)
-
eskarp: Custom design using ergogen, 3D printed case, RP2040 with Rust firmware
RTIC - RTOS and task scheduling
-
My negative views on Rust
That's completely incorrect. The existing ecosystem focuses on web/IO because that's were Async/Await is already being used in other languages so everyone started there. There is significant interest in writing frameworks using async rust in embedded, but the required compiler features for it are still not stable. Check out embassy. Even RTIC has experiments with async.
-
Question: Elegant way of getting a 'static reference?
But neither of them might be usable in you case. Since it looks like you're running bare-metal, a framework like RTIC can give you a initialization function and then pass "static" data to a struct that is shared between all tasks.
svd2rust
- Show HN: Sonatino – compact audio dev board based on ESP32-S3
-
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?
embassy - Modern embedded framework, using Rust and async.
EdenSCM - A Scalable, User-Friendly Source Control System. [Moved to: https://github.com/facebook/sapling]
tock - A secure embedded operating system for microcontrollers
espflash - Serial flasher utility for Espressif SoCs and modules based on esptool.py
blisp - A statically typed Lisp like scripting programming language for Rust.
HikariCore - A fork of Hikari's core obfuscation
cortex-m-quickstart - Template to develop bare metal applications for Cortex-M microcontrollers
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.
cortex-m - Low level access to Cortex-M processors
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.
avr-hal - embedded-hal abstractions for AVR microcontrollers
veloren
