Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4878

General • Re: debugprobe_on_pico (i.e. not the retail debug probe)

$
0
0
Maybe some connection/wiring/power issue? I just uploaded https://github.com/raspberrypi/debugpro ... gprobe.uf2 to my Pico, connected GND and SWD CLK and IO as per picture (GND,GP2,GP3) to my nrf52 board (actually banglejs 2 watch) and it works

Code:

bin\openocd.exe -d2 -f interface/cmsis-dap.cfg -f target/nrf52.cfgOpen On-Chip Debugger 0.12.0+dev-01686-gefe902219 (2024-08-06-14:34)Licensed under GNU GPL v2For bug reports, read        http://openocd.org/doc/doxygen/bugs.htmldebug_level: 2Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.Info : Listening on port 6666 for tcl connectionsInfo : Listening on port 4444 for telnet connectionsInfo : Using CMSIS-DAPv2 interface with VID:PID=0x2e8a:0x000c, serial=E66038B7132D6E39Info : CMSIS-DAP: SWD supportedInfo : CMSIS-DAP: Atomic commands supportedInfo : CMSIS-DAP: Test domain timer supportedInfo : CMSIS-DAP: FW Version = 2.0.0Info : CMSIS-DAP: Interface Initialised (SWD)Info : SWCLK/TCK = 0 SWDIO/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0Info : CMSIS-DAP: Interface readyInfo : clock speed 1000 kHzInfo : SWD DPIDR 0x2ba01477Info : [nrf52.cpu] Cortex-M4 r0p1 processor detectedInfo : [nrf52.cpu] target has 6 breakpoints, 4 watchpointsInfo : [nrf52.cpu] Examination succeedInfo : [nrf52.cpu] starting gdb server on 3333Info : Listening on port 3333 for gdb connections
EDIT: I also tried to connect the pico to its own SWD and it detects itself too (not very practical I know)

Code:

bin\openocd.exe -d2 -f interface/cmsis-dap.cfg -f target/rp2040.cfgOpen On-Chip Debugger 0.12.0+dev-01686-gefe902219 (2024-08-06-14:34)Licensed under GNU GPL v2For bug reports, read        http://openocd.org/doc/doxygen/bugs.htmldebug_level: 2Info : Hardware thread awareness createdInfo : Hardware thread awareness createdInfo : Listening on port 6666 for tcl connectionsInfo : Listening on port 4444 for telnet connectionsWarn : An adapter speed is not selected in the init scripts. OpenOCD will try to run the adapter at very low speed (100 kHz).Warn : To remove this warnings and achieve reasonable communication speed with the target, set "adapter speed" or "jtag_rclk" in the init scripts.Info : Using CMSIS-DAPv2 interface with VID:PID=0x2e8a:0x000c, serial=E66038B7132D6E39Info : CMSIS-DAP: SWD supportedInfo : CMSIS-DAP: Atomic commands supportedInfo : CMSIS-DAP: Test domain timer supportedInfo : CMSIS-DAP: FW Version = 2.0.0Info : CMSIS-DAP: Interface Initialised (SWD)Info : SWCLK/TCK = 0 SWDIO/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0Info : CMSIS-DAP: Interface readyInfo : clock speed 100 kHzInfo : SWD DPIDR 0x0bc12477, DLPIDR 0x00000001Info : SWD DPIDR 0x0bc12477, DLPIDR 0x10000001Info : [rp2040.core0] Cortex-M0+ r0p1 processor detectedInfo : [rp2040.core0] target has 4 breakpoints, 2 watchpointsInfo : [rp2040.core0] Examination succeedInfo : [rp2040.core1] Cortex-M0+ r0p1 processor detectedInfo : [rp2040.core1] target has 4 breakpoints, 2 watchpointsInfo : [rp2040.core1] Examination succeedInfo : [rp2040.core0] starting gdb server on 3333Info : Listening on port 3333 for gdb connections

Statistics: Posted by fanoush — Thu Aug 22, 2024 7:44 pm



Viewing all articles
Browse latest Browse all 4878

Trending Articles