embassy
rtic
embassy | rtic | |
---|---|---|
80 | 15 | |
6,113 | 1,883 | |
7.6% | 3.1% | |
9.9 | 8.2 | |
2 days ago | 1 day 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.
embassy
- Embassy: Replacing RTOS with a Rust async scheduler
-
Apple is Killing Swift – A great language strangled by governance
The other comment implied it but I think it's worth pointing out that:
> embedded applications that can't have asynchronous execution
Is most definitely not the case.
They can't have the same type of async runtime that would be optimal for a web server or the likes (and I'm not sure all desktop applications and web servers are going to always benefit from the same runtime in the same way), but that's a point in favour of Rust's model imho
If you're interested this is an embedded async runtime that's expected to run in no-std and no-alloc environments
https://embassy.dev/
-
Impl Snake For Micro:bit - Embedded async Rust on BBC Micro:bit with Embassy
In this article, I will guide you through creating a Snake game in embedded Rust on the BBC Micro:bit using the asynchronous framework Embassy.
-
A review after using Rust on embedded in production for over a year
Rust solved this by autogenning code from mfgr published device xml descriptors. Eg https://embassy.dev/
Better than any C(++) embedded hal I've used
- Building a GATT Server on Pi Pico W
- Embassy-rs/embassy: Modern embedded framework, using Rust and async
- Embedded Swift [video]
-
I like the RP2040
If I get your question right, you still need some host software (like a rust compiler)! It's not exactly micropython experience.
The bare minimum would be one of the examples [1] compiled with a Rust compiler and then transformed into a .uf2 file with elf2uf2 [2]. You can then just drag and drop the .uf2 file into the "mass storage device" presented by the bootloader. To get the bootloader to mount, you press a button on a Raspberry Pico (or short two outputs if you're using bare RP2040) while plugging it in.
You'll probably want a debug probe [3] driven by probe-rs [4] at some point, it's just much more convenient to flash and debug with it.
[1]: https://github.com/embassy-rs/embassy/tree/main/examples/rp/...
[2]: https://github.com/JoNil/elf2uf2-rs
[3]: https://www.raspberrypi.com/documentation/microcontrollers/d...
[4]: https://probe.rs/
- Embassy 在 Blue Pill 上的点灯案例
-
Why choose async/await over threads?
thanks. looked that up. for the curious: https://embassy.dev/
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.
What are some alternatives?
tock - A secure embedded operating system for microcontrollers
nrf-hal - A Rust HAL for the nRF family of devices
cortex-m-quickstart - Template to develop bare metal applications for Cortex-M microcontrollers
smoltcp - a smol tcp/ip stack
blisp - A statically typed Lisp like scripting programming language for Rust.
crates.io - The Rust package registry
nettu-scheduler - A self-hosted calendar and scheduler server.
rusty-clock - An alarm clock with environment stats in pure bare metal embedded rust
cortex-m - Low level access to Cortex-M processors
rust-mos - Empowering everyone to build reliable and efficient software.
svd2rust - Generate Rust register maps (`struct`s) from SVD files