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

swvviewer on crates.io #21

Open
Yatekii opened this issue Feb 7, 2020 · 5 comments
Open

swvviewer on crates.io #21

Yatekii opened this issue Feb 7, 2020 · 5 comments

Comments

@Yatekii
Copy link

Yatekii commented Feb 7, 2020

Hi!

Do you plan to release the ITM code as a lib on crates.io somehow?
I am very interested in it! I could write it myself ofc, but not sure that's worth it, but I have no interest in a binary crate :)
Also I only have interest in the protocol itself, as we have all the debug probe stuff down already.
Do you think this is a possibility?

Best,
Noah

@windelbouwman
Copy link
Owner

Hi!

Yes, it makes sense to split the ITM decoding code. This sould be possible. How would you use this code? Would you use openocd in combination with a rust program and pipe the ITM trace data through this rust program?

Which part of the ITM code are you interested in? The part for ITM cell configuration, or the actual protocol decoding?

@Yatekii
Copy link
Author

Yatekii commented Feb 8, 2020

We'd use it with https://github.com/probe-rs/probe-rs . Wie have STLink, CMSIS-DAP and JLink running and can flash and debug with them. we would like to have ITM now too. I implemented the stubs for the STLink yesterday and others will follow suit.

I most likely will add a small ITM tracer inside https://github.com/probe-rs/cargo-flash so you can open a TCP socket with --itm added where you then can connect to and read all the trace events. I am not sure yet if it's best to display all events and also write a viewer which can filter uart messages and memory events or just display the UART messages.

Do you have IM, so we can talk about this? Would also be very interesting to discuss what you found out on this :) MIssed fosdem unfortunately but watched you interesting talk :)

@windelbouwman
Copy link
Owner

I created a matrix chat room: https://matrix.to/#/!vENRYheIihxkvCRCSF:matrix.org?via=matrix.org

@windelbouwman
Copy link
Owner

Maybe the best option is to add the ITM protocol decoding code to the probe-rs project?

@Yatekii
Copy link
Author

Yatekii commented Feb 9, 2020

I joined your channel (we have a #probe-rs with some quite folks on matrix too) and I am basically always online, so hit me up :)

I would love to incooporate that and more of your findings into probe-rs if you are down for it :) I can do it myself or you can file a PR if you like. I'll gladly assist with any arising questions =)

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

2 participants