mirror of
https://github.com/google/comprehensive-rust.git
synced 2024-11-26 01:30:22 +02:00
cargo-binutils requires llvm-tools-preview
This commit is contained in:
parent
aa1036af66
commit
4427241ca7
@ -7,10 +7,10 @@ experience with bare-metal programming in some other language such as C.
|
||||
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.
|
||||
- What is `no_std` Rust?
|
||||
- Writing firmware for microcontrollers.
|
||||
- Writing bootloader / kernel code for application processors.
|
||||
- Some useful crates for bare-metal Rust development.
|
||||
|
||||
For the microcontroller part of the course we will use the [BBC micro:bit](https://microbit.org/) v2
|
||||
as an example. It's a [development board](https://tech.microbit.org/hardware/) based on the Nordic
|
||||
@ -23,6 +23,7 @@ To get started, install some tools we'll need later. On gLinux or Debian:
|
||||
sudo apt install aarch64-linux-gnu-gcc gdb-multiarch libudev-dev picocom qemu-system-arm
|
||||
rustup update
|
||||
rustup target add aarch64-unknown-none thumbv7em-none-eabihf
|
||||
rustup component add llvm-tools-preview
|
||||
cargo install cargo-binutils cargo-embed
|
||||
```
|
||||
|
||||
@ -42,5 +43,6 @@ brew install gdb picocom qemu
|
||||
brew install --cask gcc-aarch64-embedded
|
||||
rustup update
|
||||
rustup target add aarch64-unknown-none thumbv7em-none-eabihf
|
||||
rustup component add llvm-tools-preview
|
||||
cargo install cargo-binutils cargo-embed
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user