fork/rust
git clone https://git.julia.blue/fork/rust
f3e1a954d2e
1.41.1
1[target.thumbv7m-none-eabi] 2# uncomment this to make `cargo run` execute programs on QEMU 3runner = "qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -kernel" 4 5[target.thumbv6m-none-eabi] 6# uncomment this to make `cargo run` execute programs on QEMU 7# For now, we use cortex-m3 instead of cortex-m0 which are not supported by QEMU 8runner = "qemu-system-arm -cpu cortex-m3 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -kernel" 9 10[target.'cfg(all(target_arch = "arm", target_os = "none"))'] 11# uncomment ONE of these three option to make `cargo run` start a GDB session 12# which option to pick depends on your system 13# runner = "arm-none-eabi-gdb -q -x openocd.gdb" 14# runner = "gdb-multiarch -q -x openocd.gdb" 15# runner = "gdb -q -x openocd.gdb" 16 17rustflags = [ 18 # LLD (shipped with the Rust toolchain) is used as the default linker 19 "-C", "link-arg=-Tlink.x", 20 21 # if you run into problems with LLD switch to the GNU linker by commenting out 22 # this line 23 # "-C", "linker=arm-none-eabi-ld", 24 25 # if you need to link to pre-compiled C libraries provided by a C toolchain 26 # use GCC as the linker by commenting out both lines above and then 27 # uncommenting the three lines below 28 # "-C", "linker=arm-none-eabi-gcc", 29 # "-C", "link-arg=-Wl,-Tlink.x", 30 # "-C", "link-arg=-nostartfiles", 31]