Thumbnail

steew/gilgamesh.git

Clone URL: https://git.buni.party/steew/gilgamesh.git

Viewing file on branch master

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
5[target.'cfg(all(target_arch = "arm", target_os = "none"))']
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"
11runner = "probe-rs run --chip STM32L431RCTx"
12
13rustflags = [
14 # LLD (shipped with the Rust toolchain) is used as the default linker
15 "-C", "link-arg=-Tlink.x",
16
17 # if you run into problems with LLD switch to the GNU linker by commenting out
18 # this line
19 # "-C", "linker=arm-none-eabi-ld",
20
21 # if you need to link to pre-compiled C libraries provided by a C toolchain
22 # use GCC as the linker by commenting out both lines above and then
23 # uncommenting the three lines below
24 # "-C", "linker=arm-none-eabi-gcc",
25 # "-C", "link-arg=-Wl,-Tlink.x",
26 # "-C", "link-arg=-nostartfiles",
27]
28
29[build]
30# Pick ONE of these compilation targets
31# target = "thumbv7em-none-eabi" # Cortex-M4 and Cortex-M7 (no FPU)
32target = "thumbv7em-none-eabihf" # Cortex-M4F and Cortex-M7F (with FPU)