2019-03-19 23:27:22 +08:00
|
|
|
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
|
2019-03-20 17:48:44 +08:00
|
|
|
runner = "gdb-multiarch -q -x openocd.gdb"
|
2020-11-26 00:33:16 +08:00
|
|
|
rustflags = [
|
|
|
|
"-C", "link-arg=-Tlink.x",
|
2020-11-30 19:02:14 +08:00
|
|
|
# The target (below) defaults to cortex-m4
|
|
|
|
# There currently are two different options to go beyond that:
|
|
|
|
# 1. cortex-m7 has the right flags and instructions (FPU) but no instruction schedule yet
|
2020-11-26 00:33:16 +08:00
|
|
|
"-C", "target-cpu=cortex-m7",
|
2020-11-30 19:02:14 +08:00
|
|
|
# 2. cortex-m4 with the additional fpv5 instructions and a potentially
|
|
|
|
# better-than-nothing instruction schedule
|
2020-11-26 00:33:16 +08:00
|
|
|
"-C", "target-feature=+fp-armv8d16",
|
2020-11-30 19:02:14 +08:00
|
|
|
# When combined they are equivalent to (1) alone
|
2020-11-26 00:33:16 +08:00
|
|
|
]
|
2019-03-18 19:56:26 +08:00
|
|
|
|
|
|
|
[build]
|
|
|
|
target = "thumbv7em-none-eabihf"
|