windelbouwman / lognplot

Plotting and logging of real-time data for desktop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

swvviewer on crates.io

Yatekii opened this issue · comments

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

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?

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 :)

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

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 =)