earlephilhower / arduino-pico

Raspberry Pi Pico Arduino core, for all RP2040 and RP2350 boards
GNU Lesser General Public License v2.1
1.96k stars 406 forks source link

Using debug function with picoprobe, arduino IDE 2.3.2 on windows 10 x64 #2295

Closed nakeze closed 1 month ago

nakeze commented 1 month ago

Hello, I am working with Arduino 2.3.2 on a windows 10 x64 machine, and this core 3.1.1. I am developping using this rp2040 core for a moment now. I would like to use the debugger functionality. From the doc it seems possible as there is a uploading from picotool, pico-debug, picoprobe. I have a pi pico and a pi debug probe. When I set up the SWD wires between probe and pico board, then connect to usb the two devices so that they are powered, I can see to serial ports in the Arduino IDE (drivers should be good). However when I select the pico probe port and change the upload method to picoprobe (regular one), I have this message : Open On-Chip Debugger 0.11.0-g228ede43d-dirty (2022-12-22-20:09) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : only one transport option; autoselect 'swd' adapter speed: 5000 kHz

Info : Hardware thread awareness created Info : Hardware thread awareness created Info : RP2040 Flash Bank Command Error: Failed to open or find the device Error: Can't find a picoprobe device! Please check device connections and permissions. Error: No Valid JTAG Interface Configured. Failed uploading: uploading error: exit status 0xffffffff

If I select the CMSIS-DAP picoprobe, I have the status 1

I downloaded the pico SDK installer (that installs other softwares, openocd and gdb are in there) and it is not helping.

Is it possible to do what I am trying to achieve ? What am I doing wrong ? Sincerely Nicolas