Debugging in Arduino IDE 2.0 with PicoProbe (Raspberry Pi Debug Probe/OpenOCD/CMSIS-DAP) #1299
-
Hello, My question is, how can I debug using this setup? The only option available in Arduino IDE 2.0 is the "Arduino" configuration. I don't seem to be able to create any other configurations. The output of the gdb-server is the following:
Any help would be appreciated. Feel free to reach out with any questions or concerns. Sincerely, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Use Picoprobe-CMSIS-DAP.tcl instead. The RPI folks made a 2nd version of the picoprobe FW based on CMSIS-DAP, which is incompatible with the original Picoprobe firmware. |
Beta Was this translation helpful? Give feedback.
-
Starting the GDB server yields- Request 2 cancelled on connection close I'm using the Arduino 2.2.1 IDE with dual RPi Pico's under cmsis-dap. I'm including a copy of the output and Debug Console...for reference. OUTPUT Window: Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : Hardware thread awareness created Info : Hardware thread awareness created adapter speed: 5000 kHz Info : Using CMSIS-DAPv2 interface with VID:PID=0x2e8a:0x000c, serial=E661640843626C27 Info : CMSIS-DAP: SWD supported Info : CMSIS-DAP: Atomic commands supported Info : CMSIS-DAP: Test domain timer supported Info : CMSIS-DAP: FW Version = 2.0.0 Info : CMSIS-DAP: Interface Initialised (SWD) Info : SWCLK/TCK = 0 SWDIO/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0 Info : CMSIS-DAP: Interface ready Info : clock speed 5000 kHz Info : SWD DPIDR 0x0bc12477, DLPIDR 0x00000001 Info : SWD DPIDR 0x0bc12477, DLPIDR 0x10000001 Info : [rp2040.core0] Cortex-M0+ r0p1 processor detected Info : [rp2040.core0] target has 4 breakpoints, 2 watchpoints Info : [rp2040.core1] Cortex-M0+ r0p1 processor detected Info : [rp2040.core1] target has 4 breakpoints, 2 watchpoints Info : starting gdb server for rp2040.core0 on 3333 Info : Listening on port 3333 for gdb connections [rp2040.core0] halted due to debug-request, current mode: Thread xPSR: 0xf1000000 pc: 0x000000ea msp: 0x20041f00 [rp2040.core1] halted due to debug-request, current mode: Thread xPSR: 0xf1000000 pc: 0x000000ea msp: 0x20041f00 ** Programming Started ** Info : Found flash device 'win w25q16jv' (ID 0x001540ef) Info : RP2040 B0 Flash Probe: 2097152 bytes @0x10000000, in 32 sectors Info : Padding image section 1 at 0x10013b6c with 148 bytes (bank write end alignment) Warn : Adding extra erase range, 0x10013c00 .. 0x1001ffff ** Programming Finished ** ** Verify Started ** ** Verified OK ** [rp2040.core0] halted due to debug-request, current mode: Thread xPSR: 0xf1000000 pc: 0x000000ea msp: 0x20041f00 [rp2040.core1] halted due to debug-request, current mode: Thread xPSR: 0xf1000000 pc: 0x000000ea msp: 0x20041f00 Please note: |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Use Picoprobe-CMSIS-DAP.tcl instead. The RPI folks made a 2nd version of the picoprobe FW based on CMSIS-DAP, which is incompatible with the original Picoprobe firmware.