From b676cf04095857fbe62edd8d23ab4f1fd5e8269a Mon Sep 17 00:00:00 2001 From: TQ Hirsch Date: Fri, 22 Apr 2022 21:08:24 +0200 Subject: [PATCH] Added film scanner cargo config --- firmware/film-scanner-fw/.cargo/config.toml | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 firmware/film-scanner-fw/.cargo/config.toml diff --git a/firmware/film-scanner-fw/.cargo/config.toml b/firmware/film-scanner-fw/.cargo/config.toml new file mode 100644 index 0000000..dc027bf --- /dev/null +++ b/firmware/film-scanner-fw/.cargo/config.toml @@ -0,0 +1,26 @@ +# Choose a default "cargo run" tool. +# probe-run is recommended if you have a debugger +# elf2uf2-rs loads firmware over USB when the rp2040 is in boot mode +[target.'cfg(all(target_arch = "arm", target_os = "none"))'] +# runner = "probe-run --chip RP2040" +runner = "elf2uf2-rs -d" + +rustflags = [ + # "-C", "linker=flip-link", + "-C", "link-arg=--nmagic", + "-C", "link-arg=-Tlink.x", + "-C", "link-arg=-Tdefmt.x", + + # Code-size optimizations. + # trap unreachable can save a lot of space, but requires nightly compiler. + # uncomment the next line if you wish to enable it + # "-Z", "trap-unreachable=no", + "-C", "inline-threshold=5", + "-C", "no-vectorize-loops", +] + +[build] +target = "thumbv6m-none-eabi" + +[env] +DEFMT_LOG = "debug" \ No newline at end of file