Skip to content
0:00 / 0:00

#rust#raspberrypi#baremetal

rust runs on EVERYTHING (no operating system, just Rust)

Low Level

1.2M subscribers • 13 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

409K views4 years ago3 recommendations

Systems programmingHardwareRustEmbedded systemsOperating systems

How to write bare-metal Rust code to blink an LED on a Raspberry Pi without an operating system.

The world of embedded programming is AMAZING. The Raspberry Pi is one of the best platforms to break into embedded development. In this video, we'll program our Raspberry Pi WITHOUT the Linux Kernel. We'll use the Rust build chain to create a custom kernel image that we can use to blink our LED on and off. You can take this tutorial, create the code for yourself and use it to develop something more advanced! You can use the UART bus, the SPI bus, or maybe even start to write your own operating system. Video Links: Linker Script: github.com/lowlevellearning/raspberry-pi-baremetal-c/blob/ma… BCM2837 Datasheet: cs140e.sergio.bz/docs/BCM2837-ARM-Peripherals.pdf 🏫 COURSES 🏫 Learn to code in C at lowlevel.academy 🔥 SOCIALS 🔥 Low Level Merch!: linktr.ee/lowlevellearning Follow me on Twitter: twitter.com/LowLevelTweets Follow me on Twitch: twitch.tv/lowlevellearning Join me on Discord!: discord.gg/gZhRXDdBYY Intro Board Setup Lets Code! ARMv7 Target no_std Don't Panic! start location linker script elf2bin TO THE DATASHEET! GPIO Code Firmware Files Outro

Why it's here

3 people recommend this

What people say. Recommended as a practical guide for getting started with bare-metal Rust development on Raspberry Pi hardware.

Moments people linked to

u/Repsol_Honda_PLin r/rust • Recommends

On “Bare metal or not for rover project. (Raspberry Pi 5)”

You can also do bare metal projects (without OS) on Raspberry Pi. It it not trivial, but doable. **Some examples:** \rust runs on EVERYTHING (no operating system, just Rust) - YouTube \ \--> [video \Raspberry Pi Bare Metal Tutorial - Part 1 - YouTube \ \--> [video \[ Baremetal Assembly Raspberry Pi Programming | Direct to Register Blink LED, No Operating System - YouTube \] \--> [video \[ Raspberry Pi C/C++ Baremetal Programming | Using C to Direct-Register Control Your Raspberry Pi - YouTube \] \--> [video \Bare Metal on the Raspberry Pi 5 - YouTube \ \--> [video
11View on Reddit

u/paulora2405in r/rust • Recommends

On “How do i make the compiler know that the opcode in the inline assembly writes its result to the eax and edx registers”

There is a YouTube channel that did a link to this video which might help you setup your development environment

u/atthereallicebearin r/rust • Recommends

On “How to make an arduino led light with rust”

it might be worth watching this YouTube video by Low Level Learning where he goes over how to make an light blink on a raspberry pi the rust code itself will probably be pretty, just using pointer::write\_volatile, but it might be a bit of a hassle to compile to the right format.