I'm trying to use an Olimex JTAG TINY with an NXP LPC1830 board.
It's a GIT snapshot from earlier today:
openocd-code-441914978d1b0debc2c40ef5a660165d53baad27.tar.gz
The Olimex adapter seems to be OK, but openocd crashes:
$ lsusb | grep Olimex
Bus 001 Device 018: ID 15ba:0004 Olimex Ltd. OpenOCD JTAG TINY
$ sudo openocd -f interface/olimex-jtag-tiny.cfg -f
board/lpc1850_spifi_generic.cfg
Open On-Chip Debugger 0.7.0-dev-snapshot (2013-04-12-11:38)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Error: The specified debug interface was not found (ft2232)
The following debug interfaces are available:
Runtime Error:
/usr/local/share/openocd/scripts/interface/olimex-jtag-tiny.cfg:7:
in procedure 'script'
at file "embedded:startup.tcl", line 58
in procedure 'interface' called at file
"/usr/local/share/openocd/scripts/interface/olimex-jtag-tiny.cfg",line 7
I couldn't find any instructions for building from a snapshot, so I
tried followowing the instructions for building from a git repository:
$ ./bootstrap
+ aclocal
+ libtoolize --automake --copy
+ autoconf
+ autoheader
+ automake --gnu --add-missing --copy
configure.ac:21: installing './compile'
configure.ac:29: installing './config.guess'
configure.ac:29: installing './config.sub'
configure.ac:8: installing './install-sh'
configure.ac:8: installing './missing'
Makefile.am: installing './INSTALL'
doc/Makefile.am:1: installing 'doc/mdate-sh'
doc/Makefile.am:1: installing 'doc/texinfo.tex'
src/Makefile.am: installing './depcomp'
Setting up submodules
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable verbose USB I/O messages... no
checking whether to enable verbose USB communication messages... no
checking whether to enable malloc free space logging... no
checking whether to enable ZY1000 minidriver... no
checking whether to enable dummy minidriver... no
checking whether standard drivers can be built... yes
configure: error: jimtcl not found, run git submodule init and git submodule
update.
I've got jimtcl 0.73 already installed, so I tried this:
$ ./configure --disable-internal-jimtcl
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
...
config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
$
OK, that seems to have worked, but a "make" fails when it gets to the
docs:
$ make
make all-recursive
make[1]: Entering directory
`/home/nxp/openocd/openocd-code-441914978d1b0debc2c40ef5a660165d53baad27'
Making all in src
...
make[2]: Leaving directory
`/home/nxp/openocd/openocd-code-441914978d1b0debc2c40ef5a660165d53baad27/src'
Making all in doc
make[2]: Entering directory
`/home/nxp/openocd/openocd-code-441914978d1b0debc2c40ef5a660165d53baad27/doc'
restore=: && backupdir=".am$$" && \
am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd . && \
rm -rf $backupdir && mkdir $backupdir && \
if (/bin/sh
/home/nxp/openocd/openocd-code-441914978d1b0debc2c40ef5a660165d53baad27/missing
--run makeinfo --version) >/dev/null 2>&1; then \
for f in openocd.info openocd.info-[0-9] openocd.info-[0-9][0-9]
openocd.i[0-9] openocd.i[0-9][0-9]; do \
if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
done; \
else :; fi && \
cd "$am__cwd"; \
if /bin/sh
/home/nxp/openocd/openocd-code-441914978d1b0debc2c40ef5a660165d53baad27/missing
--run makeinfo -I . \
-o openocd.info openocd.texi; \
then \
rc=0; \
CDPATH="${ZSH_VERSION+.}:" && cd .; \
else \
rc=$?; \
CDPATH="${ZSH_VERSION+.}:" && cd . && \
$restore $backupdir/* `echo "./openocd.info" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
openocd.texi:12: @include `version.texi': No such file or directory.
openocd.texi:37: warning: undefined flag: VERSION.
openocd.texi:38: warning: undefined flag: UPDATED.
openocd.texi:58: warning: undefined flag: VERSION.
openocd.texi:59: warning: undefined flag: UPDATED.
makeinfo: Removing output file `openocd.info' due to errors; use --force to
preserve.
make[2]: *** [openocd.info] Error 1
make[2]: Leaving directory
`/home/nxp/openocd/openocd-code-441914978d1b0debc2c40ef5a660165d53baad27/doc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/nxp/openocd/openocd-code-441914978d1b0debc2c40ef5a660165d53baad27'
make: *** [all] Error 2
Removing "docs" from SUBDIRS in Makefile makes that error go away:
$ sed -i 's/SUBDIRS = src doc/SUBDIRS = src/g' Makefile
$ make
<no errors>
Then I did a "make install", but I get the Runtime Error shown at the
top of my post.
--
Grant Edwards grant.b.edwards Yow! Hello... IRON
at CURTAIN? Send over a
gmail.com SAUSAGE PIZZA! World War
III? No thanks!
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel