summaryrefslogtreecommitdiff
path: root/firmware/.cargo/config
diff options
context:
space:
mode:
authorGuillaume Pinot <texitoi@texitoi.eu>2020-08-02 19:49:35 +0200
committerGuillaume Pinot <texitoi@texitoi.eu>2020-08-02 19:49:35 +0200
commit0a9f2cca71889e78fb0bad31a63fdb6c8e54e20f (patch)
tree2bec18262c5d2dedd8ab1c958fdc791011a99ae8 /firmware/.cargo/config
parent4589117f02c7813495719f78e581d7c812664af2 (diff)
first compiling firmware
Diffstat (limited to 'firmware/.cargo/config')
-rw-r--r--firmware/.cargo/config12
1 files changed, 12 insertions, 0 deletions
diff --git a/firmware/.cargo/config b/firmware/.cargo/config
new file mode 100644
index 0000000..1a57e27
--- /dev/null
+++ b/firmware/.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"