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
- A half-hour to learn Rustfasterthanli.me
- The "Basics" | Putting the "You" in CPUcpu.land
- RISC-V Bytes: Rust Cross-Compilation · Daniel Mangumdanielmangum.com
- A fundamental introduction to x86 assembly programmingnayuki.io
- Programming a Guessing Game - The Rust Programming Languagedoc.rust-lang.org
- “Hello, world” from scratch on a 6502 — Part 1youtube.com
- Write your Own Virtual Machinejmeiners.com
- async/await on embedded Rust - Ferrous Systemsferrous-systems.com
- Multiprogramming a 64kB ComputerSafely and Efficientlytockos.org