Files
kttl/.cargo/config.toml
T
2026-06-28 15:46:42 +10:00

22 lines
741 B
TOML

[target.'cfg(all(target_arch = "arm", target_os = "none"))']
runner = "probe-rs run --chip STM32F411VETx"
# flip-link: zero-cost stack-overflow protection. It wraps the real linker
# (LLD here), so it stays compatible with the -Tlink.x / -Tdefmt.x args below.
linker = "flip-link"
rustflags = [
# LLD (shipped with the Rust toolchain) is used as the default linker
"-C", "link-arg=-Tlink.x",
# defmt's linker script, must come after link.x
"-C", "link-arg=-Tdefmt.x",
]
[build]
target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
[env]
# defmt filters log levels at COMPILE time; without this, info!/debug! are
# stripped and only println! survives. "debug" enables debug/info/warn/error.
DEFMT_LOG = "debug"