2021-11-03 01:25:13 +01:00
|
|
|
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
|
|
|
|
# uncomment ONE of these three option to make `cargo run` start a GDB session
|
|
|
|
# which option to pick depends on your system
|
|
|
|
# runner = "arm-none-eabi-gdb -q -x openocd.gdb"
|
|
|
|
# runner = "gdb-multiarch -q -x openocd.gdb"
|
|
|
|
# runner = "gdb -q -x openocd.gdb"
|
2021-11-06 20:22:25 +01:00
|
|
|
runner = "gdb-multiarch -q -x jlink.gdb"
|
2021-11-03 01:25:13 +01:00
|
|
|
|
2024-06-16 16:16:45 +02:00
|
|
|
# Probe-rs is currently problematic: https://github.com/probe-rs/probe-rs/issues/2567
|
|
|
|
# runner = "probe-rs run --chip VA108xx --chip-description-path ./scripts/VA108xx_Series.yaml"
|
|
|
|
# runner = ["probe-rs", "run", "--chip", "$CHIP", "--log-format", "{L} {s}"]
|
|
|
|
|
2021-11-03 01:25:13 +01:00
|
|
|
rustflags = [
|
|
|
|
# This is needed if your flash or ram addresses are not aligned to 0x10000 in memory.x
|
|
|
|
# See https://github.com/rust-embedded/cortex-m-quickstart/pull/95
|
|
|
|
"-C", "link-arg=--nmagic",
|
|
|
|
|
|
|
|
# LLD (shipped with the Rust toolchain) is used as the default linker
|
|
|
|
"-C", "link-arg=-Tlink.x",
|
|
|
|
|
2024-06-16 16:16:45 +02:00
|
|
|
# knurling-rs tooling. If you want to use flip-link, ensure it is installed first.
|
|
|
|
# "-C", "linker=flip-link",
|
|
|
|
# Unfortunately, defmt is clunky to use without probe-rs..
|
|
|
|
# "-C", "link-arg=-Tdefmt.x",
|
|
|
|
|
|
|
|
# Can be useful for debugging.
|
|
|
|
"-Clink-args=-Map=app.map"
|
2021-11-03 01:25:13 +01:00
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
[build]
|
|
|
|
# Pick ONE of these compilation targets
|
|
|
|
target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
|
|
|
|
# target = "thumbv7m-none-eabi" # Cortex-M3
|
|
|
|
# target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU)
|
|
|
|
# target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
|
|
|
|
# target = "thumbv8m.base-none-eabi" # Cortex-M23
|
|
|
|
# target = "thumbv8m.main-none-eabi" # Cortex-M33 (no FPU)
|
2024-06-16 16:16:45 +02:00
|
|
|
# target = "thumbv8m.main-none-eabihf" # Cortex-M33 (with FPU)
|
|
|
|
|
|
|
|
[alias]
|
|
|
|
re = "run --example"
|
|
|
|
rb = "run --bin"
|
|
|
|
rrb = "run --release --bin"
|
|
|
|
ut = "test --target x86_64-unknown-linux-gnu"
|
|
|
|
|
|
|
|
[env]
|
|
|
|
DEFMT_LOG = "info"
|