2021-03-29 02:11:32 +00:00
|
|
|
[unstable]
|
|
|
|
build-std = ["core"]
|
|
|
|
build-std-features = ["panic_immediate_abort"]
|
|
|
|
|
|
|
|
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
|
|
|
|
runner = "probe-run-rp --chip RP2040"
|
|
|
|
|
|
|
|
rustflags = [
|
|
|
|
# LLD (shipped with the Rust toolchain) is used as the default linker
|
|
|
|
"-C", "link-arg=--nmagic",
|
|
|
|
"-C", "link-arg=-Tlink.x",
|
2021-03-29 20:28:36 +00:00
|
|
|
"-C", "link-arg=-Tlink-rp.x",
|
2021-03-29 02:11:32 +00:00
|
|
|
"-C", "link-arg=-Tdefmt.x",
|
|
|
|
|
|
|
|
# Code-size optimizations.
|
|
|
|
"-Z", "trap-unreachable=no",
|
|
|
|
]
|
|
|
|
|
|
|
|
[build]
|
|
|
|
target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
|