-
Notifications
You must be signed in to change notification settings - Fork 5
Add support for SWD sequence #4
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
Conversation
|
Hi Jonathan, Thank you for implementing this addition, is was really missing! |
korken89
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Over all this looks good! Is there any implementation using this for reference?
I'm in the process of getting the Rusty Probe upgraded to latest HAL, after that I can try implementing this to make sure it works.
|
It's not tested other than the unit tests. |
Let me know if there's anything I can do to help upgrading to the latest hal. |
|
If you have a probe, feel free to give it a try: https://github.com/probe-rs/rusty-probe-firmware/tree/update-rp-hal I'll need to get my testing setup up and running again. :) |
|
Was this tested based on the new HAL branch? |
|
Can you rebase this on master? Then I'll have it merged and released 👍 |
|
I pushed the fixes to https://github.com/probe-rs/dap-rs/tree/Grapple-Systems-add-swd-sequence you can steal my commit :) |
74d958b to
3083293
Compare
Done, your changes look fine to me. |
|
Don't merge this, I think it's wrong. I missed the sequence count and the fact you can have multiple sequences. |
|
Alright! Ping me when you want feedback |
|
Fixed. I guess the next step is to implement swd sequence reading and writing through the rusty probe firmware and test with something that already does swd sequences correctly. |
|
I went ahead and did a bitbanged implementation of this in the rusty probe firmware, you can check it out here: That branch also has a hacked fix for probe-rs/rusty-probe-firmware#26
|
|
Thank you for fixing this! |
|
I'll prepare a release of |
|
Released! I'll look into your commits and adding them. |
|
I gave your commits a go, seems to be working fine. Is there anything you are having issues with? |
|
I cherry-picked your changes, and fixed it up a little: probe-rs/rusty-probe-firmware#29 |
Process SWD sequence commands to pass them down to the device.
I changed the version to 0.2.0 instead of 0.1.1 because I modified the Swd trait, which would break dependent crates.
Changes:
Testing:
Related Issues: