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

Support for viewing defmt RTT logs without resetting device #354

@cstrahan

Description

@cstrahan

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions