From 65a1447f284f65f006b2c777ffe9dc15e215702c Mon Sep 17 00:00:00 2001 From: Andy Isaacson Date: Sat, 10 Jul 2021 14:37:59 -0700 Subject: [PATCH] further work on getting rust build for m0 --- .gitignore | 2 ++ rs-lorachat/.cargo/config | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .gitignore create mode 100644 rs-lorachat/.cargo/config diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..756e9c6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +target +.*.sw? diff --git a/rs-lorachat/.cargo/config b/rs-lorachat/.cargo/config new file mode 100644 index 0000000..6ac6920 --- /dev/null +++ b/rs-lorachat/.cargo/config @@ -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", +] -- 2.45.1