9names de42e40358
Update probe-rs tools to 0.19 (#64)
* Update probe-rs tools to 0.19

* Restore rp2040_boot2 line

* Update runner to use probe-rs run 0.19 syntax

* Update vscode launch command for probe-rs debugger

* Add note about removing older installation of cargo-embed

If you had previously installed cargo-embed separately, it will conflict with the new way probe-rs installs multiple binaries at once.

* Update README.md

Co-authored-by: 9names <60134748+9names@users.noreply.github.com>

---------

Co-authored-by: Jan Niehusmann <jan@gondor.com>
2023-07-27 07:45:43 +10:00

29 lines
920 B
TOML

[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# Choose a default "cargo run" tool:
# - probe-run provides flashing and defmt via a hardware debugger, and stack unwind on panic
# - elf2uf2-rs loads firmware over USB when the rp2040 is in boot mode
# - "probe-rs run" is similar to probe-run but it uses the latest probe-rs lib crate
runner = "probe-run --chip RP2040"
# runner = "elf2uf2-rs -d"
# runner = "probe-rs run --chip RP2040 --protocol swd"
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", "inline-threshold=5",
"-C", "no-vectorize-loops",
]
[build]
target = "thumbv6m-none-eabi"
[env]
DEFMT_LOG = "debug"