2020-09-22 18:03:43 +02:00
|
|
|
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
|
2021-05-20 10:54:10 +02:00
|
|
|
# replace nRF82840_xxAA with your chip as listed in `probe-run --list-chips`
|
2021-02-24 08:44:23 +01:00
|
|
|
runner = "probe-run --chip nRF52840_xxAA"
|
2020-09-22 18:03:43 +02:00
|
|
|
|
|
|
|
rustflags = [
|
|
|
|
# LLD (shipped with the Rust toolchain) is used as the default linker
|
|
|
|
"-C", "link-arg=--nmagic",
|
|
|
|
"-C", "link-arg=-Tlink.x",
|
|
|
|
"-C", "link-arg=-Tdefmt.x",
|
|
|
|
|
2021-02-28 21:38:10 +01:00
|
|
|
# Code-size optimizations.
|
|
|
|
"-Z", "trap-unreachable=no",
|
|
|
|
"-C", "inline-threshold=5",
|
|
|
|
"-C", "no-vectorize-loops",
|
2020-09-22 18:03:43 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
[build]
|
2021-01-03 01:40:40 +01:00
|
|
|
target = "thumbv7em-none-eabi"
|