mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-11-20 07:51:00 +00:00
19 lines
569 B
TOML
19 lines
569 B
TOML
|
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
|
||
|
# (..)
|
||
|
rustflags = [
|
||
|
"-C", "linker=flip-link", # adds stack overflow protection
|
||
|
"-C", "link-arg=-Tdefmt.x", # defmt support
|
||
|
# (..)
|
||
|
]
|
||
|
|
||
|
[target.thumbv7em-none-eabihf]
|
||
|
# set custom cargo runner to flash & run on embedded target when we call `cargo run`
|
||
|
# for more information, check out https://github.com/knurling-rs/probe-run
|
||
|
runner = "probe-run --chip nRF52840_xxAA"
|
||
|
rustflags = [
|
||
|
"-C", "link-arg=-Tlink.x",
|
||
|
]
|
||
|
|
||
|
[build]
|
||
|
# cross-compile to this target
|
||
|
target = "thumbv7em-none-eabihf" # = ARM Cortex-M4
|