Skip to content
0:00 / 0:00

#raspberrypi#c#baremetal

Raspberry Pi C/C++ Baremetal Programming | Using C to Direct-Register Control Your Raspberry Pi

Low Level

1.2M subscribers • 13 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

127K views5 years ago2 recommendations

Systems programmingHardwareEmbedded systemsC

How to write bare metal C code to control Raspberry Pi GPIO registers directly without an operating system.

The Raspberry Pi is a fan favorite of makers and embedded developers. In my previous tutorial on Raspberry Pi Baremetal programming, I demonstrated how to use ARM Assembly to perform direct-to-register programming on the RPI 3B+. In this video, I'll show you how to do direct to register programming, but instead of using assembly, well use C to turn an LED on and off via the Raspberry Pi's GPIO Interface. Subscribe for more videos like this on the Raspberry Pi! 🏫 COURSES 🏫 lowlevel.academy/courses/ Check out my new merch store!: lowlevellearning.myspreadshop.com/ Find the code here: github.com/lowlevellearning/raspberry-pi-baremetal-c SOCIALS: Follow me on Twitter: twitter.com/lowlevellearni1 Follow me on Twitch: twitch.tv/lowlevellearning Join me on Discord!: discord.gg/gZhRXDdBYY

Why it's here

2 people recommend this

What people say. Recommended as a tutorial for running bare metal C code on a Raspberry Pi without an operating system.

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

u/Muted-Ingenuity6476in r/embedded • Recommends

On “Choosing the right microcontroller for a project”

Cost point noted! But you dont really need os to run your code @ RPI. link to this video