From: Andy Isaacson Date: Sat, 10 Jul 2021 21:37:59 +0000 (-0700) Subject: further work on getting rust build for m0 X-Git-Url: https://git.patrickod.com/vpn/log/?a=commitdiff_plain;h=65a1447f284f65f006b2c777ffe9dc15e215702c;p=tincan.git further work on getting rust build for m0 --- 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", +]