Booting a microcontroller - Rust Embedded Course
In the README, we learned about flashing code onto the microcontroller using a debug probe. That is great, but how do we know that our code is going to run on the selected processor? When a program is compiled for as an application on a PC, it will will most likely use a 64 bit architecture (either x64 or ARM). Normally the architecture is selected for the programmer and it is not something that must be considered, tools generally assume that you are building for the system that you are currently using. However, when programming a microcontroller, the architecture will not be the same. Using a significantly simplified architecture comes with unique challenges but also benefits in power efficiency. This chapter will outline finding the specific instruction set for a microcontroller and the configuration of a development environment to compile to it along with the consequences of a resource limited system.
Keyboard shortcuts Press ← or → to navigate between chapters Press S or / to search in the book Press ? to show this help Press Esc to hide this help Booting a Microcontroller Creating the Binary In the README, we learned about flashing code onto the microcontroller using a debug probe. That is great, but how do we know that our code is going to run on the selected processor? When a program is compiled for as an application on a PC, it will will most likely use a 64 bit architecture (either x64 or ARM). Normally the architecture is selected for the programmer and it is not something…
saved by
related reading
- GitHub - knurling-rs/flip-link: Adds zero-cost stack overflow protection to your embedded programsgithub.com
- Writing an OS in Rustos.phil-opp.com
- p0: Running Rust code on RISC-V in QEMU · Meyer Zinnmeyerzinn.tech
- The little book about OS developmentlittleosbook.github.io
- The "Basics" | Putting the "You" in CPUcpu.land
- The Rust Programming Language - The Rust Programming Languagedoc.rust-lang.org
- A guide to getting started with embedded systems · olayinka omole · software developeryinka.dev
- Write your Own Virtual Machinejmeiners.com
- Learn Rust the Dangerous Waycliffle.com
- Linux in a Pixel Shader - A RISC-V Emulator for VRChatblog.pimaker.at
- RISC-V Bytes: Rust Cross-Compilation · Daniel Mangumdanielmangum.com
- Writing an OS in Haskellagniv.me