Skip to content

Adding launch.json for the debug probe#401

Open
noutram-old-uopaccount wants to merge 3 commits into
raspberrypi:masterfrom
noutram-old-uopaccount:master
Open

Adding launch.json for the debug probe#401
noutram-old-uopaccount wants to merge 3 commits into
raspberrypi:masterfrom
noutram-old-uopaccount:master

Conversation

@noutram-old-uopaccount

Copy link
Copy Markdown

Currently, none of the candidate launch.json files in the ide/vscode folder work with the (relatively new) official Debug Probe. Although similar to the pico-probe, there are some small differences. It took a considerable time to work out the changes needed to get it to work.

The proposal here is to add an additional file (and reference in the readme) with these changes. It is also labelled launch-debug-probe.json to match the product name.
The README is also updated (although I am not sure about including the URL of the product page - is that a stable URL?)

Nicholas Outram added 3 commits June 28, 2023 21:20
Renamed to reflect the type of debugger. Added openocd parameter so set the correct adapter speed
Includes instructions for the debug probe
@lurch

lurch commented Jun 29, 2023

Copy link
Copy Markdown
Contributor

@lurch

lurch commented Jun 29, 2023

Copy link
Copy Markdown
Contributor

The README is also updated (although I am not sure about including the URL of the product page - is that a stable URL?)

Just to be pedantic, https://www.raspberrypi.com/documentation/microcontrollers/debug-probe.html is actually the documentation URL; the product URL is https://www.raspberrypi.com/products/debug-probe/ 😉
But yes, both of those URLs are stable.

@noutram-old-uopaccount

noutram-old-uopaccount commented Jun 29, 2023

Copy link
Copy Markdown
Author

Slight aside, I would be happy to contribute small PRs to the documentation - or is that internal only?

@lurch

lurch commented Jun 29, 2023

Copy link
Copy Markdown
Contributor

Slight aside, I would be happy to contribute small PRs to the documentation - or is that internal only?

The documentation at https://www.raspberrypi.com/documentation/ is open for PRs at https://github.com/raspberrypi/documentation/tree/develop

The PDF documentation at https://datasheets.raspberrypi.com/ isn't open, but you can submit suggestions at https://github.com/raspberrypi/pico-feedback/issues

// This may need to be "arm-none-eabi-gdb" for some previous builds
"gdbPath" : "gdb-multiarch",
"serverArgs": [
"-c", "adapter speed 5000"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@ghost

ghost commented Aug 7, 2023

Copy link
Copy Markdown

Also, would be great to document about udev rules: https://github.com/raspberrypi/openocd/blob/rp2040-v0.12.0/contrib/60-openocd.rules when using openocd with cortex-debug extension.
You need to move udev rules and add your user into group: sudo useradd -G plugdev $(whoami).

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.

2 participants