Hi, Used the PICO/PICO2/PICOW/PICO2W with the Pico debugprobe. Could not compile openocd , but had to use the raspberry git repo. Even the debugprobe page links to the openccd homepage, but what actually works is https://github.com/raspberrypi/openocd When or how can openocd repo become compatible with the PI fork ?
-----Original Message----- From: Symbolic Debugger <happy.debugg...@gmail.com> Reply-To: happy.debugg...@gmail.com To: Tomas Vanek <tom_...@users.sourceforge.net>, openocd-devel@lists.sourceforge.net Subject: Re: DEPRECATED! use 'cmsis-dap backend', not 'cmsis_dap_backend' issue Date: 02/16/2025 10:15:24 AM Was able to get openocd to work for NanoDAP and Pico2 but only wit the rasberry git. Checking out tag 0.12 from the openocd repo result in a calloc build error. Checking out openocd 0.12 master builds normally but executing gives a ROM mismatch. BTW after building openocd master branch the exe utable shows the version as dirty The raspberry git did not show this error and worked to flash the Pico2. Details here: https://github.com/wuxx/nanoDAP/issues/37 For those interested in Pico, this is a great blog post: https://admantium.com/blog/pico02_setup_debugging/ FWIW... -----Original Message----- From: Tomas Vanek <tom_...@users.sourceforge.net> To: openocd-devel@lists.sourceforge.net Subject: Re: DEPRECATED! use 'cmsis-dap backend', not 'cmsis_dap_backend' issue Date: 02/15/2025 04:06:27 PM On 15/02/2025 02:26, Symbolic Debugger wrote: > > Hi > > > > > Trying to get a NanoDAP to work with a PICO2 via SWD. > > > > > Changing the command according to the instruction does not work. > > > > > openocd --command "adapter driver cmsis-dap; cmsis_dap_backend hid" > > Open On-Chip Debugger 0.12.0+dev-gcf9c0b41c-dirty (2025-02-15-08:55) > > Licensed under GNU GPL v2 > > For bug reports, read > > http://openocd.org/doc/doxygen/bugs.html > > DEPRECATED! use 'cmsis-dap backend', not 'cmsis_dap_backend' > > invalid backend argument to cmsis-dap backend <backend> > > > > > openocd --command "adapter driver cmsis-dap; cmsis-dap backend hid" > > Open On-Chip Debugger 0.12.0+dev-gcf9c0b41c-dirty (2025-02-15-08:55) > > Licensed under GNU GPL v2 > > For bug reports, read > > http://openocd.org/doc/doxygen/bugs.html > > invalid backend argument to cmsis-dap backend <backend> > > > > > Thanks > I'm not able to reproduce the issue, openocd --command "adapter driver cmsis-dap; cmsis-dap backend hid" OpenOCD compiled from the current git master does not complain about invalid argument. > Open On-Chip Debugger 0.12.0+dev-gcf9c0b41c-dirty (2025-02-15-08:55) Your OpenOCD is compiled from a modified source. Do you have tcl scripts in sync with the compiled binary? Anyway use non modified source from our git before reporting an issue. Tomas