-
-
Notifications
You must be signed in to change notification settings - Fork 781
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
J-Link cleanup and Target Power implementation #1548
Conversation
973acc6
to
83c0443
Compare
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.
This PR does a lot to the J-Link code so we've started small with a couple of items we've spotted that have large knock-on effects. We'll review further once these items have been addressed
c373436
to
4ab7220
Compare
88e43b9
to
eea537c
Compare
The return value of these functions is only used for success/fail check, returning a bool gives us more readable code at no cost to current functionality
The J-Link USB Protocol RM defines a USB communication timeout, use it
Include all publicly known commands from RM08001 J-Link USB protocol Reference manual The commands have been reordered and renamed in the context of Black Magic Debug in an effort to make them more intuitive, consistent and easier to use Mapping tables from the BMDA version of the commands to the ones on the RM are provided to make referencing the documentation easier
Update constant suffixes and use macros in place of magic numbers
Pushed a couple fixups, typos and extra const keywords |
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.
Thank you for your excellent work on this. It's looking much better as a result - there are some times we've caught in review, but they shouldn't be complicated to sort. We look forward to merging this.
… jlink command utils
From libjaylink
…f already selected
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.
LGTM, thank you for the contribution! Merging.
Detailed description
Branch is a fix, but this is actually a feature, all things considered
This is a general cleanup of J-Link code, with the final goal of adding target power functionality
It also includes the change from #1545:
Tested with a J-Link V8 and OB J-Link (Silabs Dev board)
Your checklist for this pull request
It builds for hardware native (make PROBE_HOST=native
)make PROBE_HOST=hosted
)Closing issues
replaces #1545