Skip to content

Commit

Permalink
Update install.md
Browse files Browse the repository at this point in the history
`For bandwidth and disk usage concerns the default installation only supports native compilation.`
I like what the default installation is doing, not downloading toolchains i don't need. Let's do the same for the book. At the same time, because the reader is just getting into embedded for rust, it's cool to see which toolchains for which CPU cores are already available. This gives a good feeling of control (which toolchain i can choose) and possibilities (many to choose from)
  • Loading branch information
flip111 authored Feb 17, 2019
1 parent 700d073 commit 21712a3
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions src/intro/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,27 @@ rustc 1.31.1 (b6c32da9b 2018-12-18)

For bandwidth and disk usage concerns the default installation only supports
native compilation. To add cross compilation support for the ARM Cortex-M
architecture install the following compilation targets.
architecture choose one of the following compilation targets. Use the last one
for the STM32F3DISCOVERY board and follow along with the book.

Cortex M0 M0+
``` console
$ rustup target add thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf
$ rustup target add thumbv6m-none-eabi
```

Cortex M3
``` console
$ rustup target add thumbv7m-none-eabi
```

Cortex M4 M7 without FPU
``` console
$ rustup target add thumbv7em-none-eabi
```

Cortex M4 M7 with FPU <-- STM32F3DISCOVERY
``` console
$ rustup target add thumbv7em-none-eabihf
```

### `cargo-binutils`
Expand Down

0 comments on commit 21712a3

Please sign in to comment.