Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Feature idea : add option to record received time of ITM message #34

Closed
JOE1994 opened this issue Jul 10, 2020 · 4 comments
Closed

Feature idea : add option to record received time of ITM message #34

JOE1994 opened this issue Jul 10, 2020 · 4 comments

Comments

@JOE1994
Copy link
Contributor

JOE1994 commented Jul 10, 2020

STM32CubeIDE has a feature that shows the received time of an ITM data,
and it seems to be provide a convenient way for profiling embedded apps.

image

I thought this feature could be useful when added to the itm-dump tool.
I'm not an expert with ITM or embedded stuff, so I first wanted to ask whether this feature would fit well with the itm-dump tool.
I can try implementing the feature in the near future.

Reference

Thank you for reading 🦀

@JOE1994
Copy link
Contributor Author

JOE1994 commented Jul 11, 2020

I've come to think that rather than implementing this functionality on the itmdump side, it might be better to create an API like iprint_with_timestamp in the cortex_m crate.. I'll close this issue..

@JOE1994 JOE1994 closed this as completed Jul 11, 2020
@ryankurte
Copy link

ryankurte commented Jul 12, 2020

sorry for the delay. this seems like a super interesting idea! would definitely come in handy for some timing-specific debugging i have been doing. i haven't used ITM much but would expect this to be a combination of support for receiving timestamps in itmdump as well as itm client extensions.

as to where to put this i would be inclined to fork itmdump for the receiver side to support receiving timestamps, and maybe look at feature for itm_logger or cortex-m-log to support client-side-timestamping? (disclaimer: i have not used either of itm_logger or corex-m-log they just seem roughly in line with your goals). whatever you do manage, keep us posted!

@therealprof
Copy link
Contributor

@JOE1994 Have you looked into probe.rs and its RTT feature?

@JOE1994
Copy link
Contributor Author

JOE1994 commented Jul 14, 2020

@JOE1994 Have you looked into probe.rs and its RTT feature?

I've never tried probe.rs before! (I've been using gdb & openocd for flashing & debugging)

Thank you for the pointers! I'll take a good look at it 😸

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants