raspberrypi / pico-project-generator

Tool to automatically generate a Pico C SDK Project
BSD 3-Clause "New" or "Revised" License
289 stars 74 forks source link

Add support for Raspberry Pi Debug Probe #76

Closed noutram closed 11 months ago

noutram commented 1 year ago

Added the option to use a Raspberry Pi Debug Probe (cmsis-dap debugger). This required the following:

(i) an additional parameter to set the adapter speed (as per the documentation). For other options (SWD and PicoProbe), serverArgs is an empty array.

(ii) the interface configuration file for the debug probe is set to cmsis-dap.cfg

Tested on a Pico W with Raspberry Pi Debug Probe. Tested that SWD and PicoProbe build. However, as I do not have the respective hardware, I am unable to confirm debug

As an aside - I always have to delete the build folder and allow VS Code to recreate it. This seems to be something to do with CMake.