-
Notifications
You must be signed in to change notification settings - Fork 100
Adding adapter speed 5000 to target/rp2040.cfg #78
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
I don't think this change does what you think it does - |
3f95f3e
to
333cb9a
Compare
@lurch ahh! Thank you for pointing that out. Yes I had misunderstood the intent of that file. I've pushed an alternative now. This should allow the picoprobe to work as explained in the current Getting Started Guide via:
|
Alternatively, we could modify the picoprobe.cfg to wrap the cmsis-dap and update the picoprobe user guide section to use this (if cmsis-dap was intended for a more general use case). e.g. this commit |
I'm not familiar enough with the cmsis-dap and picoprobe jtag drivers to know why the picoprobe tcl/interface no longer works, but it seems the picoprobe driver hasn't seen nearly as much work as the cmsis-dap one based on the git log. Regardless, since the cmsis-dap works with the picoprobe, I don't see why not to use it (as specified in the Getting Started Guide). |
I can confirm that
|
@hathach I didn't consider that. That sounds more appropriate as it wouldn't modify the more generic cmsis-dap.cfg and keeps the current documentation accurate. I've force pushed that change here and reverted the change to cmsis-dap.cfg. |
333cb9a
to
21b8958
Compare
Openocd 0.12 will now not error out on a missing adapter speed, but will warn you (and run the interface purposefully slowly).
Putting a default speed in rp2040.cfg isn't the right place, as the achievable speed is a function of the actual board which may have slow level shifters, line resistances etc. The command line is the right place (and the guide now reflects this), which also means users don't have to modify files in /usr/share/local if they need to reduce it. |
Following up on issue presented here.
This takes a simple approach of wrapping the working existing cmsis-dap.cfg into the existing named raspberrypi-swd.cfg file and adds the
adapter speed 5000
line on top of that. This make the steps in the existing documentation work without issue. In order to move forward without such a wrapper the documentation would have to be modified in MANY places, in addition to adding several steps to cover the use of this in VS Code. I find this to be the cleanest solution.If one still wants to modify the adapter speed to deal with long wiring/etc. one can simply overwrite the adapter speed in the raspberrypi-swd.cfg with the
-c "adapter speed 1000"
parameter as discussed in the linked thread above.