You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
Describe the bug
I have a small micro-controller Rust project that uses defmt and probe-run. It worked fine with probe-run 0.3.6. But when I want to run the program with cargo run --release with probe-run 0.3.7, I got this error:
Error: failed to demangle defmt symbol `{"package":"blink-rust","tag":"defmt_info","data":"Blink interval: {} ms","disambiguator":"11913491891077987529"}`: missing field `crate_name` at line 1 column 113
To Reproduce
Steps to reproduce the behavior:
Example
Write src/main.rs
#![no_std]#![no_main]// ..use{defmt_rtt as _, panic_probe as _ };#[entry]fnmain() -> ! {loop{
defmt::info!("Test");}}
Run it with cargo run --release
Expected and observed behavior
With probe-run 0.3.6 this works fine but with 0.3.7 you get this error message:
$ cargo run --release Finished release [optimized + debuginfo] target(s) in 0.24s Running `probe-run --chip STM32H743ZITx 'target\thumbv7em-none-eabihf\release\blink-rust'`Error: failed to demangle defmt symbol `{"package":"blink-rust","tag":"defmt_info","data":"Blink interval: {} ms","disambiguator":"11913491891077987529"}`: missing field `crate_name` at line 1 column 113
config.toml
The contents of your project's .cargo/config.toml file:
Cargo.toml
The contents of your project's Cargo.toml file:
[package]
name = "blink-rust"version = "0.1.0"edition = "2021"include = ["src/main.rs"]
[dependencies]
cortex-m = { version = "0.7.4", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7.1"stm32h7xx-hal = {version = "0.13.1", features = ["stm32h743v","rt"]}
panic-probe = { version = "0.3", features = ["print-rtt"] }
defmt = "0.3.3"defmt-rtt = "0.4"
[profile.release]
codegen-units = 1debug = 1lto = 'fat'opt-level = 'z'overflow-checks = false
Probe details
$ probe-run --list-probesthe following probes were found:[0]: STLink V2-1 (VID: 0483, PID: 374b, Serial: 0671FF525149787867184947, StLink)
Operating System:
Windows, on WSL (Ubuntu) I get the same issue
Additional context
Maybe I forgot something stupid or maybe the JSON symbol info really is missing a field :|
The text was updated successfully, but these errors were encountered:
bplaat
changed the title
Failed to demangle defmt symbol ...: missing field crate_name when running prope-run 0.3.7 works with 0.3.6
Failed to demangle defmt symbol ...: missing field crate_name when running probe-run 0.3.7 works with 0.3.6
Apr 4, 2023
Describe the bug
I have a small micro-controller Rust project that uses defmt and probe-run. It worked fine with
probe-run 0.3.6
. But when I want to run the program withcargo run --release
withprobe-run 0.3.7
, I got this error:To Reproduce
Steps to reproduce the behavior:
Example
src/main.rs
cargo run --release
Expected and observed behavior
With
probe-run 0.3.6
this works fine but with0.3.7
you get this error message:config.toml
The contents of your project's
.cargo/config.toml
file:Cargo.toml
The contents of your project's
Cargo.toml
file:Probe details
Operating System:
Windows, on WSL (Ubuntu) I get the same issue
Additional context
Maybe I forgot something stupid or maybe the JSON symbol info really is missing a field :|
The text was updated successfully, but these errors were encountered: