Skip to content
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

Replacement for itmdump #13

Closed
grigorig opened this issue Feb 22, 2022 · 5 comments
Closed

Replacement for itmdump #13

grigorig opened this issue Feb 22, 2022 · 5 comments

Comments

@grigorig
Copy link

The itm-decode utility is not a replacement for itmdump. Is anything planned in this regard? Something suitable for the common use case of watching SWV debug output live.

@tmplt
Copy link
Member

tmplt commented Mar 1, 2022

Is anything planned in this regard?

It's likely in scope, but I cannot find the repository of itmdump to compare feature sets. Do you know where it is located?

Something suitable for the common use case of watching SWV debug output live.

If the SWV is available as a serial device it can be monitored live with itm-decode --singles /path/to/serial-device. If --itm-freq is specified itm-decode configures the device for the given baud rate.

@grigorig
Copy link
Author

grigorig commented Mar 1, 2022

See https://github.com/rust-embedded/itm. It actually says "This crate is now deprecated, please refer to rtic-scope/itm instead.", so I wonder why you don't know about it.

@tmplt
Copy link
Member

tmplt commented Mar 1, 2022

rust-embedded/itm does not contain an itmdump, see rust-embedded/itm#33. The issue points to https://github.com/japaric/itm-tools, but that repo does not contain it either. itm-tools does contain an itm-decode also, but that tool is superseded by this repo's itm-decode which offer some additional features.

@ryan-summers
Copy link

For future reference, itmdump was included in the last release (0.3.1) of itm, but appears to have been removed on master before this was transferred. See https://github.com/rust-embedded/itm/blob/v0.3.1/src/bin/itmdump.rs

@tmplt
Copy link
Member

tmplt commented Jun 3, 2022

Thanks, @ryan-summers.

It seems that itmdump is used to decode and print out the payloads of instrumentation packets. While this crate does decode them, itm-decode does not currently decode the payload data into strings like itmdump seems to do. Closing in favour of #5.

@tmplt tmplt closed this as completed Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants