embedded-trainings-2020/advanced/firmware/.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

17 lines
373 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]
runner = "probe-run --chip nRF52840_xxAA --erase-all"
rustflags = [
"-C", "link-arg=-Tlink.x",
]
[build]
target = "thumbv7em-none-eabihf"