mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-25 21:19:35 +01:00
Merge #506
506: book: Add note to remember to choose target r=AfoHT a=CuriouslyCurious
While following the instructions in the book I ran into a wall. I was getting linker errors and had no idea why. Turns out trying to run `cargo build --example init` on an x86 build target maybe doesn't work too well, so I added a note about it. 😅
I'll leave this as a draft since my Russian isn't fluent enough to add the note there as well. Also, adding a modified version of `.config/cargo.toml` from the embedded example might be a decent idea but wanted to hear from you guys first. :P
Co-authored-by: CuriouslyCurious <thecuriouslycurious@protonmail.com>
This commit is contained in:
commit
6674848111
1 changed files with 7 additions and 1 deletions
|
@ -53,6 +53,12 @@ $ cargo run --example init
|
|||
{{#include ../../../../ci/expected/init.run}}
|
||||
```
|
||||
|
||||
> **NOTE**: Remember to specify your chosen target device by passing a target
|
||||
> triple to cargo (e.g `cargo run --example init --target thumbv7m-none-eabi`) or
|
||||
> configure a device to be used by default when building the examples in `.cargo/config.toml`.
|
||||
> In this case, we use a Cortex M3 emulated in QEMU so the target is `thumbv7m-none-eabi`.
|
||||
> See [`Starting a new project`](./new.md) for more info.
|
||||
|
||||
## `idle`
|
||||
|
||||
A function marked with the `idle` attribute can optionally appear in the
|
||||
|
|
Loading…
Reference in a new issue