nrf-rs / microbit

A Rust crate for BBC micro:bit development
BSD Zero Clause License
276 stars 61 forks source link

Example fails to run #82

Closed wpd closed 2 years ago

wpd commented 2 years ago

Following the example given at crates.io on MaoOS, I see the following:

$ cargo run --release --manifest-path ./examples/display-blocking/Cargo.toml --features v2 --target thumbv7em-none-eabihf
    Finished release [optimized] target(s) in 0.25s
     Running `probe-run --chip nRF52833_xxAA target/thumbv7em-none-eabihf/release/display-blocking`
Error: defmt wire format version mismatch: firmware is using 0.2, `probe-run` supports 3
suggestion: `cargo install` a different version of `probe-run` that supports defmt 0.2

Can you please help me learn how to cargo install a different version of probe run that supports defmt 0.2. --wpd

wpd commented 2 years ago

One way to work around this is:

$ cargo install --version "0.2.0" probe-run

I don't know if you want to update the documentation at crates.io, or update all of the Cargo.toml files in your repository, and update the rubble repository to use defmt 0.3.0.

drewhk commented 2 years ago

I have the same issue, but trying the workaround above got into another error (while installing probe-run 0.2)

  --- stdout
  Can't find libusb pkg: VcpkgNotFound("No vcpkg installation found. Set the VCPKG_ROOT environment variable or run 'vcpkg integrate install'")
shaggygi commented 2 years ago

I'm having same issues. Any update on how to fix? Thx

thisisdev-patrick commented 2 years ago

Any updates? having the same issue. Esp. when you are new to rust and embedded programming in it, this is very frustrating. Thanks in advance!

therealprof commented 2 years ago

The problem is that the ble-beacon example uses rubble which has a hardcoded dependency on defmt in version 0.2.0.

In order to upgrade defmt the two options are: Someone updates rubble or we remove the ble-beacon example.

caemor commented 2 years ago

Should be resolved by #88

therealprof commented 2 years ago

Indeed, sorry for not noticing that this issue can be closed.