Home > On-Demand Archives > Talks >

Learning Rust For Embedded Systems

Steve Branam - Watch Now - EOC 2022 - Duration: 46:51

Learning Rust For Embedded Systems
Steve Branam
This will cover my experience learning to work in Rust for embedded systems. This is from working as a volunteer firmware developer on the VolksEEG open source/open hardware project. Most of my experience is with C and C++, and this is my first project using Rust. I'll cover the resources I've used to learn both general Rust and the specifics of Rust on embedded systems, as well as the challenges I've run into. Rust eliminates several classes of problems that typically occur with other languages, but in order to do so it follows some different language philosophies and rules.
1 / 5
Please log in or create an account to test your knowledge and see the answers.

What main benefit does Steve Branam cite as the reason to use Rust for embedded systems?

A Rust provides a runtime garbage collector that prevents memory leaks at the cost of occasional execution stalls.
B Rust's compiler enforces rules at compile time to guarantee memory safety and eliminate whole classes of bugs without runtime cost.
C Rust requires less discipline from programmers because the language fixes design mistakes automatically.
D Rust is primarily chosen because it closely matches C syntax, making porting C code trivial.
E Rust sacrifices performance in favor of safety by inserting heavy runtime checks into every memory access.
M↓ MARKDOWN HELP
italicssurround text with
*asterisks*
boldsurround text with
**two asterisks**
hyperlink
[hyperlink](https://example.com)
or just a bare URL
code
surround text with
`backticks`
strikethroughsurround text with
~~two tilde characters~~
quote
prefix with
>

bjuberchaub
Score: 1 | 3 years ago | 1 reply

Very interesting and well presented. Could you post active links (live) to the resources?

RaulPando
Score: 0 | 3 years ago | no reply

Best to download the slides, the links are easily accessible that way.

GlebPlekhotko
Score: 0 | 4 years ago | no reply

Thank you for presentation!
I'm currently learning Rust and the list of references you've provided in the beginning of the video is very valuable. Introduction about HAL and board crates plus SVD files "importing" is very appreciates as well.
Though, for a person with a very shallow knowledge of the language, it's quite difficult to assess how useful are those advance features like "lifetimes" you've mentioned. A little practical example would be a fine thing to get an idea of what is that. Hope to see that next year.
Thank you again and good luck!

OUR SPONSORS & PARTNERS