embedded-trainings-2020/beginner/apps/.cargo/config.toml
Johann Hemmann 5b589af24f Add --erase-all to probe-run invocation
Newer models of the nrf52840 need this in order to flash.
2023-06-26 16:48:55 +02:00

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