pico-examples icon indicating copy to clipboard operation
pico-examples copied to clipboard

Adding launch.json for the debug probe

Open noutram opened this issue 1 year ago • 5 comments

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?)

noutram avatar Jun 28 '23 21:06 noutram

See also #349 and #380 and https://github.com/raspberrypi/picoprobe/issues/49#issuecomment-1331748165 and https://github.com/raspberrypi/openocd/pull/78 ping @P33M

lurch avatar Jun 29 '23 07:06 lurch

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/ :wink: But yes, both of those URLs are stable.

lurch avatar Jun 29 '23 07:06 lurch

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

noutram avatar Jun 29 '23 08:06 noutram

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

lurch avatar Jun 29 '23 09:06 lurch

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).

ghost avatar Aug 07 '23 05:08 ghost