Skip to content

Commit e1e9885

Browse files
authored
Merge pull request #95 from Dirbaio/Dirbaio-patch-1
Add --nmagic linker arg, for unaligned flash origin support.
2 parents ae6ad14 + 8047986 commit e1e9885

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.cargo/config

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
# runner = "gdb -q -x openocd.gdb"
1111

1212
rustflags = [
13+
# This is needed if your flash or ram addresses are not aligned to 0x10000 in memory.x
14+
# See https://github.com/rust-embedded/cortex-m-quickstart/pull/95
15+
"-C", "link-arg=--nmagic",
16+
1317
# LLD (shipped with the Rust toolchain) is used as the default linker
1418
"-C", "link-arg=-Tlink.x",
1519

0 commit comments

Comments
 (0)