jeanthom / openocd-dirtyjtag

OpenOCD fork with DirtyJTAG support (WIP)
GNU General Public License v2.0
16 stars 4 forks source link

Error running openocd-dirtyjtag: syncbb_scan: Assertion `read == 32' failed. #6

Open SrivamsiMalladi opened 1 year ago

SrivamsiMalladi commented 1 year ago

I am using Raspberry Pi Pico W with openocd-dirtyjtag and trying to flash/debug NXP LPC1837. Got the following error when I try to start openocd. Please help me in resolving it.

iotdev@iotdev:~$ openocd -f interface/dirtyjtag.cfg -f target/lpc18xx.cfg
Open On-Chip Debugger 0.10.0+dev-g569944a0 (2023-01-23-07:29)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'adapter driver' not 'interface'
Info : only one transport option; autoselect 'jtag'
DEPRECATED! use 'adapter speed' not 'adapter_khz'
adapter speed: 100 kHz

DEPRECATED! use 'adapter srst delay' not 'adapter_nsrst_delay'
DEPRECATED! use 'adapter speed' not 'adapter_khz'
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1000 kHz

*** syncbb_scan ****************************************
TX  ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
openocd: src/jtag/drivers/dirtyjtag.c:434: syncbb_scan: Assertion `read == 32' failed.
Aborted (core dumped)
iotdev@iotdev:~$ 
U007D commented 8 months ago

I am getting this error too trying to use openocd-dirtyjtag with phdussud/pico-dirtyJtag on a Pico debugging an RPi4B.

❯ openocd -f ./tcl/interface/dirtyjtag.cfg -f ./tcl/board/rpi4.cfg
Open On-Chip Debugger 0.10.0+dev-g569944a0 (2023-12-29-09:38)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
adapter speed: 100 kHz

Warn : Transport "jtag" was already selected
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1000 kHz

*** syncbb_scan ****************************************
TX      ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Assertion failed: (read == 32), function syncbb_scan, file dirtyjtag.c, line 434.
fish: Job 1, 'openocd -f ./tcl/interface/dirt…' terminated by signal SIGABRT (Abort)

Does anyone have any ideas what the problem might be?

AvatarBg111 commented 3 months ago

I have the same issue. I'm using Raspberry Pico and trying to debug STM32F103C8