Skip to content

Commit 5d7d6b2

Browse files
Be more elaborate on toolchain setup (Linux)
1 parent 759580f commit 5d7d6b2

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/preface.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,25 @@ nor is access to a Cortex-M microcontroller needed -- all the examples included
4242
QEMU. You will, however, need to install the following tools to run and inspect the examples in this
4343
book:
4444

45-
- [`cargo-binutils`](https://github.com/japaric/cargo-binutils). Install it with `cargo install
46-
cargo-binutils`; then run `rustup component add llvm-tools-preview`.
45+
- [`cargo-binutils`](https://github.com/japaric/cargo-binutils).
4746

48-
- [`cargo-edit`](https://crates.io/crates/cargo-edit). Install it with `cargo install cargo-edit`.
47+
- [`cargo-edit`](https://crates.io/crates/cargo-edit).
48+
49+
- The `thumbv7m-none-eabi` target.
4950

5051
- QEMU with support for ARM emulation. The `qemu-system-arm` program must be installed on your
5152
computer. The name may differ for non-Debian based distributions.
5253

5354
- LLDB. GDB with ARM support can also be used, but this book chooses LLDB as it's more likely that
5455
readers that are not into Cortex-M development have installed LLDB than GDB with ARM support.
56+
57+
#### Rust toolchain setup on Linux
58+
59+
```bash
60+
rustup default nightly # If you start from scratch, get rustup from https://rustup.rs/
61+
rustup target add thumbv7m-none-eabi
62+
cargo install cargo-binutils
63+
rustup component add llvm-tools-preview
64+
sudo apt-get install libssl-dev # For Debian based systems (Ubuntu)
65+
cargo install cargo-edit
66+
```

0 commit comments

Comments
 (0)