mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 23:02:30 +00:00
19 lines
517 B
TOML
19 lines
517 B
TOML
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
|
|
# replace STM32G071C8Rx with your chip as listed in `probe-run --list-chips`
|
|
runner = "probe-run --chip STM32G071RBTx"
|
|
|
|
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 = "thumbv6m-none-eabi"
|