Skip to content

Commit 21712a3

Browse files
authored
Update install.md
`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)
1 parent 700d073 commit 21712a3

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

src/intro/install.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,27 @@ rustc 1.31.1 (b6c32da9b 2018-12-18)
1616

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

22+
Cortex M0 M0+
2123
``` console
22-
$ rustup target add thumbv6m-none-eabi thumbv7m-none-eabi thumbv7em-none-eabi thumbv7em-none-eabihf
24+
$ rustup target add thumbv6m-none-eabi
25+
```
26+
27+
Cortex M3
28+
``` console
29+
$ rustup target add thumbv7m-none-eabi
30+
```
31+
32+
Cortex M4 M7 without FPU
33+
``` console
34+
$ rustup target add thumbv7em-none-eabi
35+
```
36+
37+
Cortex M4 M7 with FPU <-- STM32F3DISCOVERY
38+
``` console
39+
$ rustup target add thumbv7em-none-eabihf
2340
```
2441

2542
### `cargo-binutils`

0 commit comments

Comments
 (0)