2023-02-01 15:57:05 +00:00
|
|
|
# Welcome to Bare Metal Rust
|
2023-02-10 04:06:07 +00:00
|
|
|
|
|
|
|
Today we will talk about `bare-metal` Rust: running Rust code without an OS underneath us. This will
|
|
|
|
be divided into several parts:
|
|
|
|
|
|
|
|
* What is `no_std` Rust?
|
|
|
|
* Writing firmware for microcontrollers.
|
|
|
|
* Writing bootloader / kernel code for application processors.
|
|
|
|
* Some useful crates for bare-metal Rust development.
|
2023-02-15 04:52:47 +00:00
|
|
|
|
|
|
|
To get started, install some tools we'll need later:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo apt install gdb-multiarch picocom
|
|
|
|
rustup update
|
|
|
|
rustup target add thumbv7em-none-eabihf
|
|
|
|
cargo install cargo-binutils cargo-embed
|
|
|
|
```
|