From cc7fcd67613976c0873e22fcc1002b343efc0fe0 Mon Sep 17 00:00:00 2001 From: David Westgate Date: Wed, 11 Dec 2024 05:59:40 -0800 Subject: [PATCH] rust file --- code/project/.cargo/config.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 code/project/.cargo/config.toml diff --git a/code/project/.cargo/config.toml b/code/project/.cargo/config.toml new file mode 100644 index 0000000..017ba71 --- /dev/null +++ b/code/project/.cargo/config.toml @@ -0,0 +1,11 @@ +[build] +target = "thumbv7em-none-eabihf" + +# For micro:bit v2 +[target.thumbv7em-none-eabihf] +#runner = "probe-run --chip nRF52833_xxAA" +runner = "probe-rs run --chip nRF52833_xxAA" +rustflags = [ + "-C", "linker=rust-lld", + "-C", "link-arg=-Tlink.x", +] \ No newline at end of file