You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-16 06:10:26 +02:00
cargo-binutils requires llvm-tools-preview
This commit is contained in:
@ -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
|
Today we will talk about 'bare-metal' Rust: running Rust code without an OS underneath us. This will
|
||||||
be divided into several parts:
|
be divided into several parts:
|
||||||
|
|
||||||
* What is `no_std` Rust?
|
- What is `no_std` Rust?
|
||||||
* Writing firmware for microcontrollers.
|
- Writing firmware for microcontrollers.
|
||||||
* Writing bootloader / kernel code for application processors.
|
- Writing bootloader / kernel code for application processors.
|
||||||
* Some useful crates for bare-metal Rust development.
|
- 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
|
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
|
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
|
sudo apt install aarch64-linux-gnu-gcc gdb-multiarch libudev-dev picocom qemu-system-arm
|
||||||
rustup update
|
rustup update
|
||||||
rustup target add aarch64-unknown-none thumbv7em-none-eabihf
|
rustup target add aarch64-unknown-none thumbv7em-none-eabihf
|
||||||
|
rustup component add llvm-tools-preview
|
||||||
cargo install cargo-binutils cargo-embed
|
cargo install cargo-binutils cargo-embed
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -42,5 +43,6 @@ brew install gdb picocom qemu
|
|||||||
brew install --cask gcc-aarch64-embedded
|
brew install --cask gcc-aarch64-embedded
|
||||||
rustup update
|
rustup update
|
||||||
rustup target add aarch64-unknown-none thumbv7em-none-eabihf
|
rustup target add aarch64-unknown-none thumbv7em-none-eabihf
|
||||||
|
rustup component add llvm-tools-preview
|
||||||
cargo install cargo-binutils cargo-embed
|
cargo install cargo-binutils cargo-embed
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user