2021-06-08 16:36:47 +02:00
|
|
|
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
|
|
|
|
# replace STM32F429ZITx with your chip as listed in `probe-run --list-chips`
|
2021-09-21 13:42:27 +02:00
|
|
|
#runner = "probe-run --chip STM32L475VGT6"
|
2021-11-02 17:03:56 +01:00
|
|
|
#runner = "probe-run --chip STM32L475VG"
|
|
|
|
runner = "probe-run --chip STM32L4S5VI"
|
2021-06-08 16:36:47 +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",
|
|
|
|
|
|
|
|
# Code-size optimizations.
|
|
|
|
"-Z", "trap-unreachable=no",
|
|
|
|
"-C", "inline-threshold=5",
|
|
|
|
"-C", "no-vectorize-loops",
|
|
|
|
]
|
|
|
|
|
|
|
|
[build]
|
|
|
|
target = "thumbv7em-none-eabi"
|