Replies: 4 comments 5 replies
-
Unfortunately I do not have a Raspberry Debug Probe to test. This project distributes the official OpenOCD, built from the upstream repository. If Raspberry has a custom version of OpenOCD, with functionality not contributed back to the official project, the official OpenOCD cannot work with such custom devices. You should probably use the custom OpenOCD, as suggested by the Raspberry documentation. BTW, the links in your message are broken. |
Beta Was this translation helpful? Give feedback.
-
I got a Raspberry Debug Probe and did a first test on my mac, with the xPack OpenOCD, and it seems ok:
|
Beta Was this translation helpful? Give feedback.
-
As a reference, on macOS: % /Users/ilg/Library/xPacks/@xpack-dev-tools/openocd/0.12.0-1.1/.content/bin/openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg
xPack Open On-Chip Debugger 0.12.0-01004-g9ea7f3d64-dirty (2023-01-30-17:05)
...
Info : starting gdb server for rp2040.core0 on 3333
Info : Listening on port 3333 for gdb connections
Info : starting gdb server for rp2040.core1 on 3334
Info : Listening on port 3334 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
[rp2040.core0] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x100001f0 msp: 0x2003ffe8
Info : Found flash device 'win w25q16jv' (ID 0x001540ef)
Info : RP2040 B0 Flash Probe: 2097152 bytes @0x10000000, in 32 sectors
Info : New GDB Connection: 1, Target rp2040.core0, state: halted
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (1122 ms). Workaround: increase "set remotetimeout" in GDB
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
Info : dropped 'gdb' connection and the client was: % /Users/ilg/Library/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/12.2.1-1.2.1/.content/bin/arm-none-eabi-gdb
GNU gdb (xPack GNU Arm Embedded GCC x86_64) 12.1.90.20221210-git
...
(gdb) target remote localhost:3333
Remote debugging using localhost:3333
warning: No executable has been specified and target does not support
determining executable automatically. Try using the "file" command.
0x100001f0 in ?? ()
(gdb) exit
A debugging session is active.
Inferior 1 [Remote target] will be detached.
Quit anyway? (y or n) y
Detaching from pid Remote target
Ending remote debugging.
[Inferior 1 (Remote target) detached]
% |
Beta Was this translation helpful? Give feedback.
-
hello again. dodgy USB ports - that is the main problem. your proof that the standard openocd and gdb work for raspberry pi pico my original question as to why the standard openocd would not work i have spent some hours last night with standard openocd + gdb and changing/removing usb connections mainly solved the issue. i can be thanks for you help and apologies for the time gap in our interaction. regards |
Beta Was this translation helpful? Give feedback.
-
g'day.
on windows 11 i am using
xpack-openocd-0.12.0-1-win32-x64.zip
for STM32 and there has never been a problem.
for the raspberry pi pico with cmsis-dap.cfg and rp2040.cfg
.\bin\openocd -f interface\cmsis-dap.cfg -f target\rp2040.cfg -s share
which is not very helpful. well - it is helpful but not in a way one would like.
Raspberry Pi Debug Probe at https://www.raspberrypi.com/documentation/microcontrollers/debug-probe.html
about 3/8 down the page at 'MS Windows'
points to a particular build of openocd at https://github.com/raspberrypi/pico-setup-windows/releases/latest/download/openocd-x64-standalone.zip
and this works fine with the Debug Probe.
well, you likely know all this.
but why? why will the call to cmsis-dap.cfg and rp2040.cfg in
xpack-openocd-0.12.0-1-win32-x64.zip
not work?
Beta Was this translation helpful? Give feedback.
All reactions