Page 1 of 1

openocd 0.5.0 (2011-12-03-10:15) with flyswatter rev-b

Posted: Sun Apr 29, 2012 10:44 am
by xenonym
I am trying to use openocd from a xubunutu desktop machine,
I installed openocd 0.5.0 using "sudo apt-get install openocd"
but I seem unable to talk to either my beagle board or my panda board with my flyswatter
I get the following errors and am at a loss as to what to do next ....

openocd -s lib/openocd/ -f interface/flyswatter.cfg -f board/ti_beagleboard.cfg
Open On-Chip Debugger 0.5.0 (2011-12-03-10:15)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
RCLK - adaptive
Warn : omap3530.dsp: huge IR length 38
RCLK - adaptive
trst_only separate trst_push_pull
Info : RCLK (adaptive clock speed) not supported - fallback to 1000 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: omap3530.jrc: IR capture error; saw 0x3f not 0x01
Warn : Bypassing JTAG setup events due to errors

sudo openocd -s lib/openocd/ -f interface/flyswatter.g -f target/omap3530_norclk.cfg -c init -c "reset init"
Open On-Chip Debugger 0.5.0 (2011-12-03-10:15)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
1000 kHz
Warn : omap3530.dsp: huge IR length 38
trst_only separate trst_push_pull
Info : clock speed 1000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: omap3530.jrc: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
1000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: omap3530.jrc: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: target not examined yet
Runtime Error: /usr/share/openocd/scripts/target/omap3530_norclk.cfg:66:
in procedure 'omap3_dbginit'
in procedure 'cortex_a8' called at file "/usr/share/openocd/scripts/target/omap3530_norclk.cfg", line 66

sudo openocd -s lib/openocd/ -f interface/flyswatter.g -f board/ti_pandaboard.cfg
Open On-Chip Debugger 0.5.0 (2011-12-03-10:15)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
RCLK - adaptive
Using dbgbase = 0x80000000
force hard breakpoints
trst_only separate trst_push_pull
Info : RCLK (adaptive clock speed) not supported - fallback to 6000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: omap4430.jrc: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors

Re: openocd 0.5.0 (2011-12-03-10:15) with flyswatter rev-b

Posted: Sun May 06, 2012 7:37 am
by xenonym
I've solved my issue, (RTFM!) by looking at http://www.tincantools.com/wiki/Flyswatter_How_To
I'd put the jtag daughter board at the beagle board end not the flyswatter end of the jtag cable thus reversing it. (been carefull to make sure the red line was on pin 1). all works are exected once the user error was fixed.

Re: openocd 0.5.0 (2011-12-03-10:15) with flyswatter rev-b

Posted: Mon May 07, 2012 4:05 am
by wmat
Glad you got it working. For future reference, OpenOCD TCT information will live at elinux.org. Here's all of the pages there so far: http://elinux.org/Category:TinCanTools