Skip to content
0:00 / 0:00

#rust#embedded#microbit

Embedded Rust setup explained

The Rusty Bits

33K subscribers • 5 videos on Hallway

YouTube

Beginner. No background in the topic needed.

171K views2 years ago3 recommendations

Systems programmingHardwareRustEmbedded systemsDebugging

How to set up a development environment for bare-metal Rust programming on microcontrollers.

In this episode we get our development environment prepared for building bare-metal Rust projects. Follow along with your preferred editor & hardware as we begin our journey into the landscape of embedded Rust... and check the errata in the pinned comment below if you run into issues! Subscribe : youtube.com/@therustybits?sub_confirmation=1 Patreon : patreon.com/therustybits Chapters: Intro Tooling Hardware Cross compiling Bare Metal Rust Dependency Management Don't panic!() Build & Flash Debugging with RTT Debugging with gdb Conclusion The Rusty Bandit References: Install Rust | rust-lang.org/tools/install Microbit v2 Product Spec | tech.microbit.org/hardware/ Rust Platform Support | doc.rust-lang.org/beta/rustc/platform-support.html nRF52833 Data Sheet | infocenter.nordicsemi.com/pdf/nRF52833_PS_v1.6.pdf Crates Registry | crates.io/ Arm GNU Toolchain | developer.arm.com/downloads/-/arm-gnu-toolchain-downloads The Embedded Rust book | docs.rust-embedded.org/book/ "The Book" | doc.rust-lang.org/book/index.html FAQ: Terminal setup: - JetBrainsMono Nerd Font : nerdfonts.com/font-downloads - Oh-My-Z : ohmyz.sh/ - alias ls='colorls' - Powerlevel10k theme : github.com/romkatv/powerlevel10k - zsh-autosuggestions : github.com/zsh-users/zsh-autosuggestions - zsh-syntax-highlighting : github.com/zsh-users/zsh-syntax-highlighting See @typecraft_dev : youtu.be/wNQpDWLs4To Playlist: (All via Epidemic Sound) Chasing Snakes - Martin Landstrom Revving - Martin Landstrom Before Chill - Yomoti Still on My Mind - Sarah, the Illstrumentalist Rich and Thick - spring gang Sorvete de Limao - Martin Landstrom Will of Minds - Magnus Ringblom Disc Me Bro - Basixx Simple Pleasantries - Arthur Benson Deep Space Samurai - Forever Sunset

Why it's here

3 people recommend this

What people say. Recommended as an exceptional introduction to setting up and starting with embedded Rust development.

u/hak8orin r/rust • Recommends

On “From Zero to Async in Embedded Rust”

This is a youtube series that started up a few months ago, which in my opinion is exceptional at teaching rust in an embedded context. - link to this video - link to this video - link to this video - link to this video I honestly wouldn't be surprised if the presenter works in education or does such presentations for a living, because it's genuinely very well put together. This specific one goes over how async looks in an embedded context. Huge fan, and goes into proper depth of how things actually work, instead of solely a very high level overview.

u/pquin r/rust • Recommends

On “How's the state of embedded Rust?”

It has been a while since I played in embedded rust, but I remember really enjoying this series of videos: [video

u/U007Drust · twir · bool_extin r/rust • Recommends

On “RISC-V Microcontroller - Rust”

Two links which may be of interest: 1. Best intro to embedded Rust development I've seen: link to this video 2. Condensed intro to `embassy`: link to this video Enjoy!

u/SirCrainTrainin r/embedded • Mentions

Missing Vector Table in Rust Hi, I'm new to Rust and am currently following the well known "Embedded Rust setup explained" youtube video [video I'm currently executing "cargo embed --chip nRF52833\_xxAA" and am getting the following warning and error: WARN probe\_rs::flashing::loader: No loadable segments were found in the ELF file. Error No loadable segments were found in the ELF file. I have executed "cargo objdump -- -h" and seem to be missing the following files: .text .rodata .vector\_table .data I do not know what to do to resolve this, I'm sure it's a small issue. Any help would be much appreciated!!