I'm trying to build/run openocd on a Beaglebone, using bitbanged gpio to program a nRF52832 by SWD.
After pulling & building the latest source (0.12) I can't get it to accept my config for some reason.
Here's the configuration
adapter driver linuxgpiod
adapter gpio swdio 50
adapter gpio swclk 60
adapter gpio srst 51
adapter srst delay 100
adapter srst pulse_width 100
and here's the output
Open On-Chip Debugger 0.12.0+dev-00256-g4a9677617 (2023-07-12-08:57)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
swd
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : Linux GPIOD JTAG/SWD bitbang driver
Error: Require swclk and swdio gpio for SWD mode
As far as I can see by trawling the source code the error comes from sysfsgpio_swd_mode_possible() which in turn is just checking for non-negative values for swdio & swclk i.e. that they have been defined. So maybe I'm using the wrong method of defining the signals?
Any ideas please? My Google-fu is failing me not help by the fact that gpio usage doesn't seem to be that common plus several options have been deprecated.