On 16/02/2025 03:15, Symbolic Debugger wrote:
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
It means that you made something wrong. The clean build of git master gives
Open On-Chip Debugger 0.12.0+dev-00851-g73e9b7898 (2025-02-16-08:12)
You're right that build of tagged v0.12.0 fails with gcc v12 and newer.
Two warnings are emitted in jimtcl submodule build, not OpenOCD itself.
However there is an easy help
configure --disable-werror
and you get
Open On-Chip Debugger 0.12.0 (2025-02-16-08:35)
Didn't you forget before your build
git submodule update
Use
git status
to get detailed info.
Also do
make clean
if the build previously reported itself 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/
There is lot of pending patches for rp2350 and rp2040 in our gerrit.
If nobody cares to test and review them there is nothing more I can do.
I would recommend to checkout and test
8461: tcl/target/rp2040: add flash size override and reset init event |
https://review.openocd.org/c/openocd/+/846
(with 27 patches in the relation chain)
HTH
Tomas
FWIW...
-----Original Message-----
*From*: Tomas Vanek <tom_...@users.sourceforge.net
<mailto:tomas%20vanek%20%3ctom_...@users.sourceforge.net%3e>>
*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