From 5bd9111f3cb3b9a6bd0bba094183c27c4fbf4643 Mon Sep 17 00:00:00 2001 From: "Dutkowski, Bernd" Date: Sun, 20 Mar 2022 17:49:35 +0100 Subject: [PATCH 1/2] Add .cargo/config --- .cargo/config | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..5d10902 --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[build] +target = "thumbv7em-none-eabihf" From aa32f7d4889c280b22aca11d83fc3497911cb45f Mon Sep 17 00:00:00 2001 From: "Dutkowski, Bernd" Date: Tue, 22 Mar 2022 22:41:40 +0100 Subject: [PATCH 2/2] added linker options --- .cargo/config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.cargo/config b/.cargo/config index 5d10902..09fc0c0 100644 --- a/.cargo/config +++ b/.cargo/config @@ -1,2 +1,7 @@ [build] target = "thumbv7em-none-eabihf" + +[target.thumbv7em-none-eabihf] +rustflags = [ + "-C", "link-arg=-Tlink.x", +] \ No newline at end of file