]> patrickod personal git archive - tincan.git/commitdiff
further work on getting rust build for m0
authorAndy Isaacson <adi@hexapodia.org>
Sat, 10 Jul 2021 21:37:59 +0000 (14:37 -0700)
committerAndy Isaacson <adi@hexapodia.org>
Sat, 10 Jul 2021 21:37:59 +0000 (14:37 -0700)
.gitignore [new file with mode: 0644]
rs-lorachat/.cargo/config [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..756e9c6
--- /dev/null
@@ -0,0 +1,2 @@
+target
+.*.sw?
diff --git a/rs-lorachat/.cargo/config b/rs-lorachat/.cargo/config
new file mode 100644 (file)
index 0000000..6ac6920
--- /dev/null
@@ -0,0 +1,13 @@
+[build]
+target = "thumbv6m-none-eabi"
+
+[target.thumbv6m-none-eabi]
+runner = 'arm-none-eabi-gdb'
+rustflags = [
+
+  # This is needed if your flash or ram addresses are not aligned to 0x10000 in memory.x
+  # See https://github.com/rust-embedded/cortex-m-quickstart/pull/95
+  "-C", "link-arg=--nmagic",
+
+  "-C", "link-arg=-Tlink.x",
+]