From b0ba1d1459df2cf87b5973c0d523f7c9fcc29db8 Mon Sep 17 00:00:00 2001 From: Jan Niehusmann Date: Wed, 12 Apr 2023 15:52:51 +0000 Subject: [PATCH] Use fixed version dependency on defmt 0.3.2 Also suggest probe-run 0.3.6 in README.md --- Cargo.toml | 5 ++++- README.md | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1c44347..df95245 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,10 @@ cortex-m = "0.7" cortex-m-rt = "0.7" embedded-hal = { version = "0.2.5", features = ["unproven"] } -defmt = "0.3" +# Versions >0.3.4 contain a breaking change (wire format 4) and version 0.3.3 is yanked, +# so we need to force version 0.3.2 for now to be compatible with the latest +# working version of probe-run. +defmt = "=0.3.2" defmt-rtt = "0.4" panic-probe = { version = "0.3", features = ["print-defmt"] } diff --git a/README.md b/README.md index cf1d891..7b52dad 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,8 @@ If you aren't using a debugger (or want to use cargo-embed/probe-rs-debugger), c rustup target install thumbv6m-none-eabi cargo install flip-link # This is our suggested default 'runner' -cargo install probe-run +# (Because of https://github.com/knurling-rs/probe-run/issues/391, use an older version for now) +cargo install probe-run --version=0.3.6 # If you want to use elf2uf2-rs instead of probe-run, instead do... cargo install elf2uf2-rs --locked ```