+/rectangle

git clone https://git.julia.blue/+/rectangle

Rahul Butaniinit3197e5d

main
877 B28 linesraw
1# See: https://github.com/rp-rs/rp2040-project-template
2
3[target.'cfg(all(target_arch = "arm", target_os = "none"))']
4# - probe-rs: provides flashing and defmt via a hardware debugger, and stack unwind on panic
5# - elf2uf2-rs: loads firmware over USB when the rp2040 is in boot mode
6# runner = "probe-rs run --chip RP2040 --protocol swd"
7# runner = "probe-rs run --chip RP2040_SELFDEBUG"
8runner = "elf2uf2-rs -d"
9
10rustflags = [
11  "-C", "linker=flip-link",
12  "-C", "link-arg=--nmagic",
13  "-C", "link-arg=-Tlink.x",
14  # "-C", "link-arg=-Tdefmt.x", # :-(
15
16  # Code-size optimizations.
17  #   trap unreachable can save a lot of space, but requires nightly compiler.
18  #   uncomment the next line if you wish to enable it
19  # "-Z", "trap-unreachable=no",
20  "-C", "inline-threshold=5",
21  "-C", "no-vectorize-loops",
22]
23
24[build]
25target = "thumbv6m-none-eabi"
26
27[env]
28DEFMT_LOG = "debug"