You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried setting the adapter speed / adapter_khz to various values, nothing seemed to change the outcome.
The typical output I'm getting is the following:
$ sudo openocd -f /usr/local/share/openocd/scripts/interface/dirtyjtag.cfg -f pi-zero.cfg
Open On-Chip Debugger 0.12.0-rc2+dev-00023-g1947efbf1 (2024-10-17-07:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
Warn : Transport "jtag" was already selected
DEPRECATED! use 'adapter speed' not 'adapter_khz'
DEPRECATED! use 'adapter srst delay' not 'adapter_nsrst_delay'
8096
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : dirtyjtag version 2
Info : clock speed 6000 kHz
Info : JTAG tap: rpi.arm tap/device found: 0x07b7617f (mfg: 0x0bf (Broadcom), part: 0x7b76, ver: 0x0)
Info : found ARM1176
Info : rpi.arm: hardware has 6 breakpoints, 2 watchpoints
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected data
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected data
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected data
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected data
Info : starting gdb server for rpi.arm on 3333
Info : Listening on port 3333 for gdb connections
Error: tms at 1 unexpected
Error: missing data from bitq interface
Error: DPM REG READ -- fail
Error: tms at 1 unexpected
Error: missing data from bitq interface
Polling target rpi.arm failed, trying to reexamine
Info : found ARM1176
Info : rpi.arm: hardware has 6 breakpoints, 2 watchpoints
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected data
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected data
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected data
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected address
Warn : Scan chain 7 shifted out unexpected data
Info : accepting 'gdb' connection on tcp/3333
Error: tms at 1 unexpected
Error: missing data from bitq interface
Error: tms at 1 unexpected
Error: missing data from bitq interface
Error: error reading device: amount read incorrect
Error: error reading device: amount read incorrect
Error: error reading device: amount read incorrect
Error: missing data from bitq interface
Error: libusb_bulk_read error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: missing data from bitq interface
Error: 'arm11 target' JTAG error SCREG OUT 0x00
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (1131 ms). Workaround: increase "set remotetimeout" in GDB
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: missing data from bitq interface
Error: 'arm11 target' JTAG error SCREG OUT 0x00
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Polling target rpi.arm failed, trying to reexamine
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Error: libusb_bulk_write error: LIBUSB_ERROR_TIMEOUT
Segmentation fault
With rp-zero.cfg and raspberry.cfg it crashes with LIBUSB_ERROR_TIMEOUT immediately as soon as GDB connects. With /openocd/scripts/target/bcm2835.cfg I'm able to connect with GDB, but as soon as I try to execute mon load_image it once again ends up crashing with LIBUSB_ERROR_TIMEOUT.
The text was updated successfully, but these errors were encountered:
Tried compiling with pico-sdk 2.0.0 (latest) and pico-sdk 1.4.0 (2022), both result into the same problem.
The version of OpenOCD I'm using is https://review.openocd.org/c/openocd/+/7344
Tried https://github.com/phdussud/openocd as well. However there was no change, if anything it was worse than the one mentioned above.
lsusb output:
I'm debugging an Raspberry pi zero (BCM2835), the openocd conf files I've tried were:
rp-zero.cfg
(https://git.nah.nz/pi-zero-jtag/) (https://yeah.nah.nz/embedded/pi-jtag-u-boot/)raspberry.cfg
(https://github.com/sysprogs/openocd/blob/master/tcl/target/raspberry.cfg)/openocd/scripts/target/bcm2835.cfg
(shipped with OpenOCD by default)Tried setting the
adapter speed
/adapter_khz
to various values, nothing seemed to change the outcome.The typical output I'm getting is the following:
With
rp-zero.cfg
andraspberry.cfg
it crashes with LIBUSB_ERROR_TIMEOUT immediately as soon as GDB connects. With/openocd/scripts/target/bcm2835.cfg
I'm able to connect with GDB, but as soon as I try to executemon load_image
it once again ends up crashing with LIBUSB_ERROR_TIMEOUT.The text was updated successfully, but these errors were encountered: