the old way of gpio doesnt work on the pi5I am trying to wire up the SWD, and having an issue. I've wired it up IAW Chapter 5 of the "Getting Started" guide. However, I get an error message I don't quite understand:
the current solution is to use gpiod or a debug probe
https://github.com/raspberrypi/openocd/issues/93
Code:
clever@raspberrypi:~ $ cat test.cfgadapter driver linuxgpiodadapter gpio swclk 20 -chip 4adapter gpio swdio 21 -chip 4clever@raspberrypi:~ $ openocd -f test.cfg -f target/rp2040.cfgOpen On-Chip Debugger 0.12.0-g4d87f6dca (2024-01-05-00:08)Licensed under GNU GPL v2For bug reports, read http://openocd.org/doc/doxygen/bugs.htmlInfo : 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 the 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 : Linux GPIOD JTAG/SWD bitbang driverInfo : This adapter doesn't support configurable speedInfo : 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.core1] Cortex-M0+ r0p1 processor detectedInfo : [rp2040.core1] target has 4 breakpoints, 2 watchpointsInfo : starting gdb server for rp2040.core0 on 3333Info : Listening on port 3333 for gdb connections
Statistics: Posted by cleverca22 — Tue Jan 23, 2024 7:40 am