Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Support for viewing defmt RTT logs without resetting device #354

Open
cstrahan opened this issue Sep 25, 2022 · 2 comments · May be fixed by #414
Open

Support for viewing defmt RTT logs without resetting device #354

cstrahan opened this issue Sep 25, 2022 · 2 comments · May be fixed by #414
Labels
type: enhancement Enhancement or feature request

Comments

@cstrahan
Copy link

Hello,

Is there a means (or would be possible to add support) for a way to view defmt logs while a micro controller is already running (i.e. without resetting it first)? My current use case looks something like:

  • I have a Raspberry Pi Pico
  • I can bring the RUN pin low to reset the device
  • When I do, sometimes the program resets and starts running from the beginning successfully...
  • ... and other times, the device appears to lock up or crash -- the LCD I have attached as part of my project freezes, but I don't know if that's because the LCD controller is stuck in a bad state while everything else on the RP2040 is chugging along, or if something paniced, or...

Logs here would be a big help.

I can do probe-run target/thumbv6m-none-eabi/debug/pim --no-flash --chip rp2040, which doesn't flash the device, but it does reset it. It would help in this sort of scenario if I could view the defmt logs without resetting the device.

I guess such a feature contradicts the "run" in the name probe-run, but unless there's already another executable that provides this ability, it would be really nice to have. Or if this is a fundamental limitation of defmt/probe-run, it would be nice to have an advisory in the docs (assuming I haven't overlooked such).

Thanks!

@cstrahan
Copy link
Author

Here's where I've described how to use defmt with cargo-embed: probe-rs/probe-rs#1237 (comment)

Still would be cool for probe-run to support this, as (at the very least) I really like the unique features probe-run has like colorization for the various log components (making it easier to spot log level, file names, etc) and support for full back traces.

@Urhengulas Urhengulas added the type: enhancement Enhancement or feature request label Jan 26, 2023
@whitequark
Copy link

#414

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Enhancement or feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants