-
Notifications
You must be signed in to change notification settings - Fork 15
/
config.toml
41 lines (35 loc) · 1.35 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Choose a default "cargo run" tool.
# probe-run is recommended if you have a debugger
# elf2uf2-rs loads firmware over USB when the rp2040 is in boot mode
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# runner = "probe-run --chip RP2040 --probe 3c004b001051383439393134"
# runner = "probe-run --chip RP2040 --probe dc6168968f3b812eef4014"
# runner = "probe-run --chip RP2040 --probe dc61cd078f667031ef4014"
# runner = "elf2uf2-rs -d"
# This runner allows you to log & restart the Rusty Probe using
# nothing but a USB connection.
#
# The target in this runner is the _host_ compilation target
# You may have to change it
runner = "cargo xtask --target x86_64-unknown-linux-gnu debug --defmt-print"
rustflags = [
"-C", "linker=flip-link",
"-C", "link-arg=--nmagic",
"-C", "link-arg=-Tlink.x",
"-C", "link-arg=-Tdefmt.x",
# Code-size optimizations.
# trap unreachable can save a lot of space, but requires nightly compiler.
# uncomment the next line if you wish to enable it
# "-Z", "trap-unreachable=no",
"-C", "no-vectorize-loops",
]
[build]
target = "thumbv6m-none-eabi"
[env]
DEFMT_LOG = "info"
[alias]
rrb = "run --release --bin"
brb = "build --release --bin"
rrb-usb = "run --release --no-default-features --features defmt-bbq,usb-serial-reboot --bin"
run-usb = "rrb-usb app"
xtask = "run --release --manifest-path xtask/Cargo.toml"