mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-05-12 21:42:53 +00:00
5b589af24f
Newer models of the nrf52840 need this in order to flash.
19 lines
581 B
TOML
19 lines
581 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 --erase-all"
|
|
rustflags = [
|
|
"-C", "link-arg=-Tlink.x",
|
|
]
|
|
|
|
[build]
|
|
# cross-compile to this target
|
|
target = "thumbv7em-none-eabihf" # = ARM Cortex-M4 |