Document that compilation target must be added with rustup

This commit is contained in:
Paul Diaconescu
2021-02-25 23:03:14 +01:00
parent 08ebad9350
commit 99a17be671
+7
View File
@@ -74,6 +74,13 @@ In `.cargo/config.toml`, pick the right compilation target for your board.
+target = "thumbv7em-none-eabihf" # Cortex-M4F (with FPU) +target = "thumbv7em-none-eabihf" # Cortex-M4F (with FPU)
``` ```
Add the target with rustup.
``` console
$ rustup target add thumbv7em-none-eabihf
```
#### 4. Add a HAL as a dependency #### 4. Add a HAL as a dependency
In `Cargo.toml`, list the Hardware Abstraction Layer (HAL) for your board as a dependency. In `Cargo.toml`, list the Hardware Abstraction Layer (HAL) for your board as a dependency.