-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
defmt::println over RTT not shown in terminal #26
Comments
@DarrylN Hi, can you please add The default for this setting is false, even if you have defmt in your code. |
Added "rttEnabled" = true, still no output. note that 'cargo run' does show the output. 'cargo tree' output included below. Running $ cargo tree |
This is most likely because you are using defmt 0.3 when probe-rs-debugger is using 0.2. |
Actually, I suspect it has to do with the Can you replace that with at |
Yep, that for sure is an issue too :) |
changing from bkpt to nop() has no effect. |
I reverted to defmt 0.2.0 and got this: error[E0433]: failed to resolve: could not find I would like to use the probe-rs etc framework, but I'm not savvy enough in rust to resolve the dependencies. Is there a working example app with all the dependencies resolved? |
I have a private one. Will send it in the morning.
[Update] In testing my 'example app', I am now able to reproduce this ... I get no data back from defmt. Obviously something has changed since a previous release, so hopefully we can solve this soon. I am investigating and will get back to you.
|
Found it. There was a change that introduced new encoding and results in empty strings. I will implement a similar fix to what was done in cargo-embed and probe-run |
Excellent! Will this be a point release on the vsix? Happy to verify when ready. I'm watching the repos. |
Yes, and of the |
@DarrylN Please can you test this with the combination of the attached VSIX file, as well as the special branch of
|
@noppej verified! |
@noppej n.b. my Cargo.toml deps were the same as your example. |
Nice. I appreciate your patience and willingness to help verify. Thanks :) |
@noppej Well...sad to report but now getting no output, same as before. Restarted vscode, no change. I noticed that the defmt terminal instance does not get created. probe-run still works correctly. |
Did anything change since the last time it worked? Have you tried disconnecting the board and reconnecting again? |
@noppej SWAG: maybe some VS internal flag is persisted with the session? [edit] more info: Expectation is that the defmt terminal should be created and updated when the output occurs. In other words, the first println output should be seen by the time the 2nd bp is reached. Also getting this popup when a bp is set in lib.rs - path to src file is wrong: |
@DarrylN Two quick comments
|
Yes, please log it under probe-rs/probe-rs repo, and include the above. It should be easily fixable. |
defmt::println!("Hello, world!")
does not produce output in the terminal window.Code to repro.
hardware:
software:
The text was updated successfully, but these errors were encountered: