summaryrefslogtreecommitdiff
path: root/firmware/rust/.cargo/config
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2022-07-07 21:51:38 +0200
committerMarc Poulhiès <dkm@kataplop.net>2022-07-22 21:06:23 +0200
commit3c71e3a2a3af39d579c2649fddf0c8ba835bfa01 (patch)
treef383b855123ae2fb66ebb3537d36153388418ca8 /firmware/rust/.cargo/config
parent972760b3e68156c72129b833d5624d4e6f60619b (diff)
Move rust firmware in subdir
... for the upcoming Ada one.
Diffstat (limited to 'firmware/rust/.cargo/config')
-rw-r--r--firmware/rust/.cargo/config12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/rust/.cargo/config b/firmware/rust/.cargo/config
new file mode 100644
index 0000000..96e1aaa
--- /dev/null
+++ b/firmware/rust/.cargo/config
@@ -0,0 +1,12 @@
+[target.thumbv6m-none-eabi]
+
+# 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"
+
+rustflags = ["-C", "link-arg=-Tlink.x"]
+
+[build]
+target = "thumbv6m-none-eabi"