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

Add RISCV TRACE Encoder driver #864

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Oct 23, 2023

This adds the driver for the RISCV TRACE Encoder for ESP32-C6 / ESP32-H2

There are no examples added in this PR since it won't be very helpful without a decoder (which is currently in the works) - and even with a decoder it would probably make more sense to add a chapter to the no_std training since it needs more explanation than just running an example spitting out some hex numbers.

Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! Not much to review here until we have a decoder, so LGTM. Will the decoder be a standalone tool, or something you're planning to add to probe-rs for example?

@bjoernQ
Copy link
Contributor Author

bjoernQ commented Oct 23, 2023

In the first iteration the decoder will be a standalone tool - the first version will pretty much just spit out all the addresses of the execution path but once we have it and we know it works reliable we can expand on that by integration it into something else and/or adding a nice GUI

@bjoernQ bjoernQ merged commit 29f3518 into esp-rs:main Oct 23, 2023
17 checks passed
@jessebraham
Copy link
Member

Sorry I'm kind of confused, how do we use this?

@bjoernQ
Copy link
Contributor Author

bjoernQ commented Oct 23, 2023

without the said decoder there is not yet too much use for it ... that's why there are no examples yet
I have something working locally already so I was able to verify the driver works

Actually, using the driver is as simple as the docs show. enable it and when you want to get the latest data just stop it

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

Successfully merging this pull request may close these issues.

3 participants