|
10 | 10 | # runner = "gdb -q -x openocd.gdb"
|
11 | 11 |
|
12 | 12 | 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", |
| 13 | + # Previously, the linker arguments --nmagic and -Tlink.x were set here. |
| 14 | + # They are now set by build.rs instead. The linker argument can still |
| 15 | + # only be set here, if a custom linker is needed. |
16 | 16 |
|
17 |
| - # LLD (shipped with the Rust toolchain) is used as the default linker |
18 |
| - "-C", "link-arg=-Tlink.x", |
19 |
| - |
20 |
| - # if you run into problems with LLD switch to the GNU linker by commenting out |
21 |
| - # this line |
| 17 | + # By default, the LLD linker is used, which is shipped with the Rust |
| 18 | + # toolchain. If you run into problems with LLD, you can switch to the |
| 19 | + # GNU linker by uncommenting this line: |
22 | 20 | # "-C", "linker=arm-none-eabi-ld",
|
23 | 21 |
|
24 |
| - # if you need to link to pre-compiled C libraries provided by a C toolchain |
25 |
| - # use GCC as the linker by commenting out both lines above and then |
26 |
| - # uncommenting the three lines below |
| 22 | + # If you need to link to pre-compiled C libraries provided by a C toolchain |
| 23 | + # use GCC as the linker by uncommenting the three lines below: |
27 | 24 | # "-C", "linker=arm-none-eabi-gcc",
|
28 | 25 | # "-C", "link-arg=-Wl,-Tlink.x",
|
29 | 26 | # "-C", "link-arg=-nostartfiles",
|
30 | 27 | ]
|
31 | 28 |
|
32 | 29 | [build]
|
33 |
| -# Pick ONE of these compilation targets |
| 30 | +# Pick ONE of these default compilation targets |
34 | 31 | # target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
|
35 | 32 | target = "thumbv7m-none-eabi" # Cortex-M3
|
36 | 33 | # target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU)
|
|
0 commit comments