1+ [target.thumbv7m-none-eabi]
2+ # uncomment this to make `cargo run` execute programs on QEMU
3+ # runner = "qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -kernel"
4+
15[target.'cfg(all(target_arch = "arm", target_os = "none"))']
2- # runner = 'arm-none-eabi-gdb -x debug.gdb'
6+ # uncomment ONE of these three option to make `cargo run` start a GDB session
7+ # which option to pick depends on your system
8+ # runner = "arm-none-eabi-gdb -q -x openocd.gdb"
9+ # runner = "gdb-multiarch -q -x openocd.gdb"
10+ # runner = "gdb -q -x openocd.gdb"
11+
312rustflags = [
413 # LLD (shipped with the Rust toolchain) is used as the default linker
514 "-C", "link-arg=-Tlink.x",
@@ -16,23 +25,9 @@ rustflags = [
1625 # "-C", "link-arg=-nostartfiles",
1726]
1827
19- # work around rust-lang/cargo#5946
20- [target.thumbv6m-none-eabi]
21- runner = 'arm-none-eabi-gdb -x debug.gdb'
22-
23- [target.thumbv7m-none-eabi]
24- runner = 'arm-none-eabi-gdb -x debug.gdb'
25-
26- [target.thumbv7em-none-eabi]
27- runner = 'arm-none-eabi-gdb -x debug.gdb'
28-
29- [target.thumbv7em-none-eabihf]
30- runner = 'arm-none-eabi-gdb -x debug.gdb'
31- # end of workaround
32-
3328[build]
34- # Pick one of these compilation targets
29+ # Pick ONE of these compilation targets
3530# target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+
36- # target = "thumbv7m-none-eabi" # Cortex-M3
31+ target = "thumbv7m-none-eabi" # Cortex-M3
3732# target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU)
38- # target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
33+ # target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)
0 commit comments