[build] target = "thumbv6m-none-eabi" # RP2040 = Cortex-M0+ (the plain Pico on the Scroll Pack) [target.thumbv6m-none-eabi] # flip-link: stack below statics, so an overflow faults cleanly instead of corrupting .bss/.data. linker = "flip-link" # `cargo run` flashes over the Raspberry Pi Debug Probe and streams defmt logs/panics via RTT. runner = "probe-rs run --chip RP2040" rustflags = [ "-C", "link-arg=--nmagic", "-C", "link-arg=-Tlink.x", "-C", "link-arg=-Tdefmt.x", # defmt's linker section for log-string interning ] [env] DEFMT_LOG = "debug"