Package: openocd
Version: 0.0+r2403-1
Severity: normal

We have been using the version of openocd in testing (r1606) for a
while to program pxa270 and xilinx coolrunner CPLDs. It all worked
fine once we got the config correct.

However we have just updated to current testing version (0.0+r2403-1 0)
and whilst with a small commandchange the pxa programming (need to
add -s /usr/lib/openocd so that the xscale/debug_handler.bin file is
found) still works, the CPLD programming is now broken. We get the
following complaint and so far as we can tell the device has not been
programmed at all:

==============output======
p...@triumph:~/balloon3/distro/binaries$ openocd -s utils/openocd/ -s
 /usr/lib/openocd -f balloon3-cpld-olimex.cfg -f loadcpld.cfg
Open On-Chip Debugger 0.2.0-in-development (2009-06-25-18:22) svn:r2403

BUGS? Read /usr/share/doc/openocd/BUGS

$URL: http://svn.berlios.de/svnroot/repos/openocd/trunk/src/openocd.c
5000 kHz
Info : JTAG tap: xcr.tap tap/device found: 0x0494c093 (mfg: 0x049, part: 
0x494c, ver: 0x0)
Warn : no gdb ports allocated as no target has been specified
     TapName            | Enabled |   IdCode      Expected    IrLen IrCap  
IrMask Instr
---|--------------------|---------|------------|------------|------|------|------|---------
 0 | xcr.tap            |    Y    | 0x0494c093 | 0x00000000 | 0x06 | 0x01 | 
0x03 | 0x3f
xsvf processing file: "vhdl/cpld/l3cpld.xsvf"
Error: BUG: TAP path doesn't finish in a stable state
Error: XSTATE IRUPDATE is not reachable from current state IRPAUSE in one clock 
cycle
Error: XSTATE DRSELECT is not reachable from current state IRPAUSE in one clock 
cycle
Error: XSTATE DRCAPTURE is not reachable from current state IRPAUSE in one 
clock cycle
Error: XSTATE DREXIT1 is not reachable from current state IRPAUSE in one clock 
cycle
Error: BUG: TAP path doesn't finish in a stable state
Error: XSTATE DRUPDATE is not reachable from current state DRPAUSE in one clock 
cycle
Error: BUG: TAP path doesn't finish in a stable state
Error: XSTATE DRCAPTURE is not reachable from current state RUN/IDLE in one 
clock cycle
Error: XSTATE DREXIT1 is not reachable from current state RUN/IDLE in one clock 
cycle
Runtime error, file "utils/openocd//cpld.cfg", line 5:


The xsvf file was generated with Xilinx webpack 9.2 on a windows
machine. The original jed and the svf and xsvf files generated from it are here:
http://balloonboard.org/files/balloon3/openocd/bugrep/

We get exactly the same results using an Olimex-usb-tiny and an
Amontec JTAGkey

Interestingly, we did find that with r1606 the target board was left
in a 'bad state' after programming and a power cycle of both the board
and the JTAG dongle was required before it would program again,
suggesting that the xsvf file does indeed contain something which
openocd doesn't like. The above error may just be the effect of more
rigorours checking in openocd. However from our point of view this is
entirely fatal - it did at least work before.


So, the question is - has the openocd playsxvf stuff changed in any
way that we should account for in our config (whch is below): I saw
nothing in the changelog to suggest so. And what can we do to help
track down the problem? We were about to go into production with this
so the regression in testing is quite serious. I'm assuming that we
can rebuild r1606 from svn and get going again, but have not yet tested.


=======cpld.cfg========
# CPLD programming
# use xlinx-generated xsvf file and program it in
# may need to specify device if it in chain with cpu

xsvf plain vhdl/cpld/l3cpld.xsvf
shutdown





===============================balloon3-cpld-olimex.cfg=======
# config for Intel PXA270 Balloon 3, with olimex dongle
# connected to CPLD JTAG port

#set up ports and standard config
source [find base.cfg]

jtag_khz 5000

source [find olimex-jtag-tiny.cfg]

source [find xilinx-xcr3256.cfg]

reset_config trst_and_srst separate

init
scan_chain

==========base.cfg======
telnet_port 4444
gdb_port 3333
tcl_port 6666


=========xilinx-xcr3256.cfg==========
#xilinx coolrunner xcr3256
#simple device - just configure a tap
jtag newtap xcr tap -irlen 6 -ircapture 0x01 -irmask 0x03 -expected-id  
0x0494c093


-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (990, 'testing'), (700, 'stable'), (500, 'oldstable'), (300, 
'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages openocd depends on:
ii  libc6                        2.9-4       GNU C Library: Shared libraries
ii  libftdi1                     0.15-2      Library to control and program the
ii  libusb-0.1-4                 2:0.1.12-13 userspace USB programming library

openocd recommends no packages.

openocd suggests no packages.

-- no debconf information

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to