Re: [Openocd-development] OpenOCD master now uses Jim Tcl 0.63

2010-11-02 Thread Steve Bennett
On 03/11/2010, at 12:23 AM, Laurent Gauch wrote: under Cygwin with external JIM TCL 0.63 in ./openocd/jimtcl, the make error is : ../../../src/helper/command.h:34:17: jim.h: No such file or directory Did you forget 'make install' in ./openocd/jimtcl? This is the symptom I see when that

Re: [Openocd-development] OpenOCD master now uses Jim Tcl 0.63

2010-11-02 Thread Steve Bennett
On 03/11/2010, at 8:34 AM, Steve Bennett wrote: On 03/11/2010, at 12:23 AM, Laurent Gauch wrote: under Cygwin with external JIM TCL 0.63 in ./openocd/jimtcl, the make error is : ../../../src/helper/command.h:34:17: jim.h: No such file or directory Did you forget 'make install

Re: [Openocd-development] [Patch] New JIMTCL

2010-11-08 Thread Steve Bennett
On 08/11/2010, at 7:46 PM, Antonio Borneo wrote: Hi, after the replacement of JIMTCL with the new version, the command puts does not work as before. It prints nothing in the telnet connection, while is still working in the default console. Looking at the code, the reason is that the new

[Openocd-development] Build improvements with new Jim Tcl

2010-11-08 Thread Steve Bennett
1. The current openocd doesn't build on cygwin 2. The multi-step configure/install/build is inconvenient. The attached patch addresses these by configuring, building and using jimtcl in-place. Note that it should still be possible to use an installed jimtcl if required by overriding CPPFLAGS and

[Openocd-development] [PATCH] Simplify build with new jimtcl

2010-11-08 Thread Steve Bennett
Don't require Jim Tcl to be separately configured and installed. This fixes builds on cygwin. Signed-off-by: Steve Bennett ste...@workware.net.au --- Makefile.am |2 +- bootstrap|8 ++-- configure.in |2 ++ jimtcl

Re: [Openocd-development] Build improvements with new Jim Tcl

2010-11-08 Thread Steve Bennett
On 09/11/2010, at 9:30 AM, Peter Stuge wrote: Steve Bennett wrote: 1. The current openocd doesn't build on cygwin Why not? This should be fixed. Laurent Gauch reported on this some days ago. I agree it should be fixed. This is my attempt. You are welcome to fix it differently. 2

Re: [Openocd-development] [Patch] New JIMTCL

2010-11-08 Thread Steve Bennett
On 09/11/2010, at 9:55 AM, Antonio Borneo wrote: On Tue, Nov 9, 2010 at 7:08 AM, Steve Bennett ste...@workware.net.au wrote: Probably it is a good idea to use echo everywhere for consistency, but you could simply redefine puts in terms of echo. Hi Steve, overriding puts is the simpler way

Re: [Openocd-development] [PATCH] Simplify build with new jimtcl

2010-11-08 Thread Steve Bennett
On 09/11/2010, at 4:59 PM, Øyvind Harboe wrote: Why is -I$(top_srcdir)/jimtcl \, that doesn't seem right. Shouldn't it be only the build dir? I modelled it on what was already there: -I$(top_srcdir)/src \ -I$(top_builddir)/src If you build out of tree, you will need both the

Re: [Openocd-development] Build improvements with new Jim Tcl

2010-11-08 Thread Steve Bennett
On 09/11/2010, at 5:02 PM, Øyvind Harboe wrote: On Tue, Nov 9, 2010 at 12:07 AM, Steve Bennett ste...@workware.net.au wrote: 1. The current openocd doesn't build on cygwin 2. The multi-step configure/install/build is inconvenient. The attached patch addresses these by configuring, building

Re: [Openocd-development] [PATCH] Simplify build with new jimtcl

2010-11-08 Thread Steve Bennett
On 09/11/2010, at 5:10 PM, Øyvind Harboe wrote: On Tue, Nov 9, 2010 at 8:08 AM, Steve Bennett ste...@workware.net.au wrote: On 09/11/2010, at 4:59 PM, Øyvind Harboe wrote: Why is -I$(top_srcdir)/jimtcl \, that doesn't seem right. Shouldn't it be only the build dir? I modelled

Re: [Openocd-development] [PATCH] Simplify build with new jimtcl

2010-11-10 Thread Steve Bennett
On 11/11/2010, at 6:48 AM, Spencer Oliver wrote: On 09/11/2010 07:13, Steve Bennett wrote: On 09/11/2010, at 5:10 PM, Øyvind Harboe wrote: On Tue, Nov 9, 2010 at 8:08 AM, Steve Bennettste...@workware.net.au wrote: On 09/11/2010, at 4:59 PM, Øyvind Harboe wrote: Why is -I

Re: [Openocd-development] How 2 build with new Jim???

2010-11-12 Thread Steve Bennett
On 12/11/2010, at 8:34 AM, Peter Stuge wrote: Øyvind Harboe wrote: By default OpenOCD should build the Jim Tcl submodule automatically, but there should be an option to use the installed Jim Tcl. I disagree strongly with this. Moving Jim out into a separate package means that it should

Re: [Openocd-development] [PATCH] Build inline jimtcl

2010-11-14 Thread Steve Bennett
On 13/11/2010, at 1:13 AM, Spencer Oliver wrote: On 12/11/2010 14:31, Spencer Oliver wrote: Hi, Started a new thread as the others are getting bogged down. This defaults to building the jimtcl inline - only one configure step required, eg. ./configure --enable-maintainer-mode

Re: [Openocd-development] [PATCH] Build inline jimtcl

2010-11-15 Thread Steve Bennett
On 16/11/2010, at 6:05 AM, Spencer Oliver wrote: This looks like it is heading in the right direction. As mentioned above we are currently adding a hack so jimtcl builds inline - this is fine for the standard configure/make case. Can you explain why you needed -DHAVE_NO_AUTOCONF? I

Re: [Openocd-development] Config file format/line endings

2010-11-15 Thread Steve Bennett
On 16/11/2010, at 9:27 AM, Andrew Leech wrote: Hi all, I've just found a compiling/usage difficulty with the git version on cygwin. Apparently somewhere between 0.4.0 and mainline (possibly jimtcl?) openocd no longer handles dos line endings on config files. Apparently all my config files of

Re: [Openocd-development] Config file format/line endings

2010-11-15 Thread Steve Bennett
On 16/11/2010, at 11:15 AM, Øyvind Harboe wrote: On Tue, Nov 16, 2010 at 2:06 AM, Steve Bennett ste...@workware.net.au wrote: On 16/11/2010, at 9:27 AM, Andrew Leech wrote: Hi all, I've just found a compiling/usage difficulty with the git version on cygwin. Apparently somewhere between

Re: [Openocd-development] Config file format/line endings

2010-11-15 Thread Steve Bennett
On 16/11/2010, at 11:36 AM, Andrew Leech wrote: On Tue, Nov 16, 2010 at 12:19 PM, Steve Bennett ste...@workware.net.au wrote: On 16/11/2010, at 11:15 AM, Øyvind Harboe wrote: On Tue, Nov 16, 2010 at 2:06 AM, Steve Bennett ste...@workware.net.au wrote: On 16/11/2010, at 9:27 AM, Andrew

Re: [Openocd-development] Config file format/line endings

2010-11-16 Thread Steve Bennett
On 16/11/2010, at 11:36 AM, Andrew Leech wrote: On Tue, Nov 16, 2010 at 12:19 PM, Steve Bennett ste...@workware.net.au wrote: On 16/11/2010, at 11:15 AM, Øyvind Harboe wrote: On Tue, Nov 16, 2010 at 2:06 AM, Steve Bennett ste...@workware.net.au wrote: On 16/11/2010, at 9:27 AM, Andrew

Re: [Openocd-development] Config file format/line endings

2010-11-16 Thread Steve Bennett
On 17/11/2010, at 2:32 PM, Andrew Leech wrote: On Wed, Nov 17, 2010 at 8:05 AM, Steve Bennett ste...@workware.net.au wrote: On 16/11/2010, at 11:36 AM, Andrew Leech wrote: On Tue, Nov 16, 2010 at 12:19 PM, Steve Bennett ste...@workware.net.au wrote: On 16/11/2010, at 11:15 AM, Øyvind

Re: [Openocd-development] STM32 reset halt segfault on Mac OS X

2010-11-30 Thread Steve Bennett
On 01/12/2010, at 7:04 AM, Piotr Esden-Tempski wrote: Hi, On Nov 30, 2010, at 12:03 PM, Steve Bennett wrote: On 01/12/2010, at 12:12 AM, Edgar Grimberg wrote: On Tue, Nov 30, 2010 at 1:02 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: 32 vs. 64 bit problem? Wouldn't

Re: [Openocd-development] STM32 reset halt segfault on Mac OS X

2010-12-01 Thread Steve Bennett
On 01/12/2010, at 2:42 PM, Piotr Esden-Tempski wrote: Hi ho, On Nov 30, 2010, at 2:31 PM, Steve Bennett wrote: On 01/12/2010, at 7:44 AM, Piotr Esden-Tempski wrote: On Nov 30, 2010, at 1:04 PM, Piotr Esden-Tempski wrote: On Nov 30, 2010, at 12:03 PM, Steve Bennett wrote: On 01/12

Re: [Openocd-development] jimtcl build on freebsd

2010-12-05 Thread Steve Bennett
On 05/12/2010, at 11:36 PM, 1 0 wrote: Hello, I gotta problem with building GIT version of OpenOCD on my FreeBSD box - there is some error with JimTcl and tclsh (should come from jimtcl?): tclsh .././jimtcl/parse-unidata.tcl .././jimtcl/UnicodeData.txt unicode_mapping.c tclsh: not

Re: [Openocd-development] Aborted; stm32 with too high clock

2010-12-13 Thread Steve Bennett
On 13/12/2010, at 8:12 PM, Domen Puncer wrote: On Thu, Nov 25, 2010 at 15:45, Domen Puncer domen.pun...@visionect.si wrote: I can reliably reproduce this one with: jtag_khz 1000 verify_image my_image.elf # some prints about too high clock reset init # openocd aborts Additional info.

Re: [Openocd-development] Aborted; stm32 with too high clock

2010-12-13 Thread Steve Bennett
On 13/12/2010, at 11:00 PM, Domen Puncer wrote: On Mon, Dec 13, 2010 at 12:47, Steve Bennett ste...@workware.net.au wrote: On 13/12/2010, at 8:12 PM, Domen Puncer wrote: but code only allocates space for extra len-1 objects. There is already one slot allocated for the arg. If the arg

Re: [Openocd-development] Aborted; stm32 with too high clock

2010-12-13 Thread Steve Bennett
On 14/12/2010, at 5:50 AM, Domen Puncer wrote: On Mon, Dec 13, 2010 at 20:32, Steve Bennett ste...@workware.net.au wrote: On 13/12/2010, at 11:00 PM, Domen Puncer wrote: On Mon, Dec 13, 2010 at 12:47, Steve Bennett ste...@workware.net.au wrote: Can we see the code being evaluated here

Re: [Openocd-development] making the target scripts a bit less verbose

2010-12-16 Thread Steve Bennett
On 17/12/2010, at 4:11 PM, Øyvind Harboe wrote: On Fri, Dec 17, 2010 at 7:06 AM, Peter Stuge pe...@stuge.se wrote: Øyvind Harboe wrote: Which is better? (whatever better is) This: if {[info exists CHIPNAME]} { set _CHIPNAME $CHIPNAME } else { set _CHIPNAME at91r40008 } All

Re: [Openocd-development] Proposal: update IXP42x config files

2010-12-17 Thread Steve Bennett
On 18/12/2010, at 6:30 AM, Michael Schwingen wrote: Hi, I did some work on the IXP42x config files, adding more known TAP IDs plus some helper functions and constants to make board config files simpler and easier to read. I have seen 3 of the 6 listed TAP IDs on real hardware, and the

Re: [Openocd-development] cygwin: git head jimsh compilation failed

2011-04-01 Thread Steve Bennett
On 10/03/2011, at 9:20 PM, Mathias K. wrote: I have append it, it is only the linker output. Am 10.03.2011 11:47, schrieb Peter Stuge: Mathias K. wrote: Any hints to solve this problem? Please send exact copy of error messages, otherwise any diagnosis is impossible. It looks like

Re: [Openocd-development] cygwin: git head jimsh compilation failed

2011-04-05 Thread Steve Bennett
On 05/04/2011, at 3:53 PM, Mathias K. wrote: I was able to link openocd against libjim. There is only a problem to link jimsh against libjim. Strange. Perhaps you can send me libjim.a and I'll take a look. Cheers, Steve Regards, Mathias Am 02.04.2011 03:10, schrieb Steve

Re: [Openocd-development] cygwin: git head jimsh compilation failed

2011-04-07 Thread Steve Bennett
On 05/04/2011, at 4:08 PM, Steve Bennett wrote: On 05/04/2011, at 3:53 PM, Mathias K. wrote: I was able to link openocd against libjim. There is only a problem to link jimsh against libjim. Strange. Perhaps you can send me libjim.a and I'll take a look. For the benefit of the list

[Openocd-development] Fwd: [Jim-devel] New release of Jim Tcl (0.71) soon

2011-06-13 Thread Steve Bennett
FYI. This release will include a number of bug fixes in addition to a small number of added features. It might be worth updating the version of Jim Tcl used by the OpenOCD. Cheers, Steve Begin forwarded message: From: Steve Bennett ste...@workware.net.au Date: 10 June 2011 2:55:01 PM AEST

Re: [Openocd-development] Fwd: [Jim-devel] New release of Jim Tcl (0.71) soon

2011-06-13 Thread Steve Bennett
On 14/06/2011, at 3:45 PM, Øyvind Harboe wrote: Hi Steve, I intend to upgrade OpenOCD to the latest release once it is available. Thanks for your efforts! Sounds good. It wouldn't hurt to test it *before* the release, just in case there is a problem and I can include fix it before the

Re: [Openocd-development] Openocd release known issues

2011-06-15 Thread Steve Bennett
On 16/06/2011, at 7:49 AM, Spencer Oliver wrote: On Jun 15, 2011 10:30 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: I think we should stick to distributing source packages only. That's my plan - even that is not easy as Jim does not use autoconf etc. That sounds like an easy

Re: [Openocd-development] Openocd release known issues

2011-06-16 Thread Steve Bennett
Hmmm. Works for me. Can you send me first few lines of git log in the jimtcl dir and also the output of make distcheck? And also jimtcl/Makefile Cheers, Steve On 16/06/2011, at 6:33 PM, Spencer Oliver s...@spen-soft.co.uk wrote: On 16 June 2011 05:38, Steve Bennett ste...@workware.net.au

Re: [Openocd-development] Openocd release known issues

2011-06-19 Thread Steve Bennett
On 17/06/2011, at 6:51 PM, Spencer Oliver wrote: On 17 June 2011 01:11, Steve Bennett ste...@workware.net.au wrote: Yes, you're right. Try the attached patch. make distcheck mostly works for me, but the build fails for reasons which is nothing to do with jimtcl. Not sure

Re: [Openocd-development] Openocd release known issues

2011-06-19 Thread Steve Bennett
On 19/06/2011, at 4:59 PM, Steve Bennett wrote: On 17/06/2011, at 6:51 PM, Spencer Oliver wrote: On 17 June 2011 01:11, Steve Bennett ste...@workware.net.au wrote: Yes, you're right. Try the attached patch. make distcheck mostly works for me, but the build fails for reasons which

[Openocd-development] [PATCH 1/3] ft2232: Fix configure --with-ftd2xx-linux-tardir

2011-06-20 Thread Steve Bennett
For libftd2xx1.0.4, which uses a different directory structure than libftd2xx0.4.16 Note that this does not fix --with-ftd2xx-lib=shared Also it assumes i386, not x86_64. Signed-off-by: Steve Bennett ste...@workware.net.au --- configure.in | 17 + 1 files changed, 9 insertions

[Openocd-development] [PATCH 2/3] ft2232: Failure to get latency should not be fatal

2011-06-20 Thread Steve Bennett
Instead, just produce a warning Signed-off-by: Steve Bennett ste...@workware.net.au --- src/jtag/drivers/ft2232.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/jtag/drivers/ft2232.c b/src/jtag/drivers/ft2232.c index 38ead56..2e0495d 100644 --- a/src/jtag/drivers

[Openocd-development] [PATCH 3/3] ft2232: Add casts to avoid warnings

2011-06-20 Thread Steve Bennett
The default is -Werror, so warnings become errors and stop the build. Might be better to simply #define FT_STATUS instead. Signed-off-by: Steve Bennett ste...@workware.net.au --- src/jtag/drivers/ft2232.c | 88 ++-- 1 files changed, 44 insertions(+), 44

Re: [Openocd-development] [PATCH 2/3] ft2232: Failure to get latency should not be fatal / OBJECTION

2011-06-20 Thread Steve Bennett
On 21/06/2011, at 1:07 AM, Laurent Gauch wrote: / On Mon, Jun 20, 2011 at 1:00 PM, Steve Bennett steveb at workware.net.au https://lists.berlios.de/mailman/listinfo/openocd-development wrote: // On 20/06/2011, at 8:54 PM, Øyvind Harboe wrote: // // On Mon, Jun 20, 2011 at 12:50 PM, Steve

Re: [Openocd-development] [PATCH 2/3] ft2232: Failure to get latency should not be fatal / OBJECTION

2011-06-21 Thread Steve Bennett
On 21/06/2011, at 3:59 PM, Laurent Gauch wrote: On 21/06/2011, at 1:07 AM, Laurent Gauch wrote: / // / On Mon, Jun 20, 2011 at 1:00 PM, Steve Bennett steveb at workware.net.au https://lists.berlios.de/mailman/listinfo/openocd-development wrote: // // On 20/06/2011, at 8:54 PM, Øyvind

Re: [Openocd-development] [PATCH 2/3] ft2232: Failure to get latency should not be fatal / OBJECTION

2011-06-21 Thread Steve Bennett
On 21/06/2011, at 4:45 PM, Laurent Gauch wrote: Steve Bennett wrote: On 21/06/2011, at 3:59 PM, Laurent Gauch wrote: On 21/06/2011, at 1:07 AM, Laurent Gauch wrote: / // / On Mon, Jun 20, 2011 at 1:00 PM, Steve Bennett steveb at workware.net.au https://lists.berlios.de

Re: [Openocd-development] [PATCH 2/3] ft2232: Failure to get latency should not be fatal / OBJECTION

2011-06-21 Thread Steve Bennett
On 21/06/2011, at 5:01 PM, Xiaofan Chen wrote: On Tue, Jun 21, 2011 at 2:55 PM, Xiaofan Chen xiaof...@gmail.com wrote: But are you sure to have the correct libusb version. On linux and mac, the libusb is the kernel driver for the d2xx. This has been discussed before and I think in this case

Re: [Openocd-development] [PATCH 2/3] ft2232: Failure to get latency should not be fatal

2011-06-21 Thread Steve Bennett
On 21/06/2011, at 5:18 PM, Laurent Gauch wrote: Steve Bennett wrote: On 21/06/2011, at 5:01 PM, Xiaofan Chen wrote: On Tue, Jun 21, 2011 at 2:55 PM, Xiaofan Chen xiaof...@gmail.com wrote: But are you sure to have the correct libusb version. On linux and mac, the libusb

Re: [Openocd-development] [PATCH 2/3] ft2232: Failure to get latency should not be fatal

2011-06-22 Thread Steve Bennett
On 21/06/2011, at 5:22 PM, Steve Bennett wrote: On 21/06/2011, at 5:18 PM, Laurent Gauch wrote: Steve Bennett wrote: On 21/06/2011, at 5:01 PM, Xiaofan Chen wrote: On Tue, Jun 21, 2011 at 2:55 PM, Xiaofan Chen xiaof...@gmail.com wrote: But are you sure to have the correct libusb

Re: [Openocd-development] [PATCH 3/3] ft2232: Add casts to avoid warnings

2011-06-23 Thread Steve Bennett
On 23/06/2011, at 8:59 PM, Øyvind Harboe wrote: I don't think this is sufficient, as it will put up warnings on some other platforms unless you use the macros that expand to the correct formatting string. See C99 section: http://en.wikipedia.org/wiki/Printf Can you provide an example of

Re: [Openocd-development] [PATCH 3/3] ft2232: Add casts to avoid warnings

2011-06-23 Thread Steve Bennett
On 23/06/2011, at 9:21 PM, Øyvind Harboe wrote: On Thu, Jun 23, 2011 at 1:03 PM, Steve Bennett ste...@workware.net.au wrote: On 23/06/2011, at 8:59 PM, Øyvind Harboe wrote: I don't think this is sufficient, as it will put up warnings on some other platforms unless you use the macros

Re: [Openocd-development] [PATCH 3/3] ft2232: Add casts to avoid warnings

2011-06-23 Thread Steve Bennett
On 24/06/2011, at 2:04 AM, Michael Schwingen wrote: On 23.06.2011 14:39, Laurent Gauch wrote: // I don't see how. // // I haven't followed this(big discussions), but I've seen on the list // in the past that casting is frowned upon and using these // macros is cheered... Anyway... I'm happy

Re: [Openocd-development] Openocd release known issues

2011-06-27 Thread Steve Bennett
On 27/06/2011, at 10:07 PM, Spencer Oliver wrote: On 27 June 2011 11:05, Spencer Oliver s...@spen-soft.co.uk wrote: Thanks that solves all the problems i see with make distcheck. At some point i may look into a method of tweaking so we do not install unnecessary files, but all is good for

Re: [Openocd-development] Openocd release known issues

2011-06-27 Thread Steve Bennett
On 27/06/2011, at 10:07 PM, Spencer Oliver wrote: On 27 June 2011 11:05, Spencer Oliver s...@spen-soft.co.uk wrote: Thanks that solves all the problems i see with make distcheck. At some point i may look into a method of tweaking so we do not install unnecessary files, but all is good for

Re: [Openocd-development] Status of building using Mingw64?

2011-06-27 Thread Steve Bennett
On 28/06/2011, at 6:33 AM, Rodrigo Rosa wrote: i'm trying to cross compile for win XP, with the following config: ./configure --enable-mantainer-mode --enable-ft2232-libftdi --host=x86_64-w64-mingw32 i get the following errors: jim-win32compat.c: In function ‘gettimeofday’:

Re: [Openocd-development] Status of building using Mingw64?

2011-06-27 Thread Steve Bennett
to need some work. What platform are you building on? What mingw packages are you using? Cheers, Steve On Mon, Jun 27, 2011 at 3:11 PM, Steve Bennett ste...@workware.net.au wrote: On 28/06/2011, at 6:33 AM, Rodrigo Rosa wrote: i'm trying to cross compile for win XP, with the following config

Re: [Openocd-development] Status of building using Mingw64?

2011-06-28 Thread Steve Bennett
On 28/06/2011, at 9:26 AM, Rodrigo Rosa wrote: i tried ./configure --enable-mantainer-mode --enable-ft2232-libftdi --host=x86_64-w64-mingw32 CFLAGS=-D__MINGW32__ and i got a bit further, now i'm stuck with this: . . . jim-eventloop.o jim-eventloop.c jim-eventloop.c:53:21: error:

Re: [Openocd-development] Status of building using Mingw64?

2011-06-28 Thread Steve Bennett
On 28/06/2011, at 5:14 PM, Xiaofan Chen wrote: On Tue, Jun 28, 2011 at 2:25 PM, Steve Bennett ste...@workware.net.au wrote: If you like, you can try the following two patches. To do this, you will need to first update jimtcl to the master branch. I have compile tested this, but I don't have

Re: [Openocd-development] Openocd release known issues

2011-06-28 Thread Steve Bennett
On 28/06/2011, at 6:24 PM, Spencer Oliver wrote: On 27 June 2011 22:33, Steve Bennett ste...@workware.net.au wrote: On 27/06/2011, at 10:07 PM, Spencer Oliver wrote: On 27 June 2011 11:05, Spencer Oliver s...@spen-soft.co.uk wrote: Thanks that solves all the problems i see with make

Re: [Openocd-development] Openocd release known issues

2011-06-28 Thread Steve Bennett
On 28/06/2011, at 6:32 PM, Spencer Oliver wrote: On 27 June 2011 22:33, Steve Bennett ste...@workware.net.au wrote: On 27/06/2011, at 10:07 PM, Spencer Oliver wrote: On 27 June 2011 11:05, Spencer Oliver s...@spen-soft.co.uk wrote: Thanks that solves all the problems i see with make

Re: [Openocd-development] Current master branch state

2011-07-01 Thread Steve Bennett
More detail please. On 02/07/2011, at 3:26 AM, Drasko DRASKOVIC drasko.drasko...@gmail.com wrote: Hi all, is current maser broken ? ./config breaks on jimtcl configuration BR, Drasko ___ Openocd-development mailing list

Re: [Openocd-development] static_lib directory missing?

2011-07-05 Thread Steve Bennett
On 06/07/2011, at 1:14 AM, Bill Traynor wrote: I'm attempting to compile OpenOCD (git:master branch) for use with the PandaBoard using the ftd2xx driver, and am experiencing the following: ./configure --enable-ft2232_ftd2xx --with-ftd2xx-linux-tardir=${HOME}/dev/libftd2xx1.0.4

Re: [Openocd-development] Building local bootstrap jimsh0 failed

2011-07-06 Thread Steve Bennett
On 07/07/2011, at 2:13 AM, Eric Wetzel wrote: I pulled from origin and now my process is failing during configure. On ac43d7a69fca52df1ad287b51c44013653ad2f61, comping under Cygwin with MinGW compiler, I get this: === configuring in jimtcl (/home/ericwetz/local/src/openocd.git/build/jimtcl)

Re: [Openocd-development] Building local bootstrap jimsh0 failed

2011-07-07 Thread Steve Bennett
On 07/07/2011, at 7:44 PM, Spencer Oliver s...@spen-soft.co.uk wrote: On 7 July 2011 00:56, Steve Bennett ste...@workware.net.au wrote: On 07/07/2011, at 2:13 AM, Eric Wetzel wrote: I pulled from origin and now my process is failing during configure

Re: [Openocd-development] [PATCH 1/3] ft2232: Fix configure --with-ftd2xx-linux-tardir

2011-07-11 Thread Steve Bennett
On 11/07/2011, at 10:03 PM, Xiaofan Chen wrote: On Tue, Jun 28, 2011 at 1:48 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Sun, Jun 26, 2011 at 10:14 PM, Øyvind Harboe oyvind.har...@zylin.com wrote: Can someone review this? Maybe it is good to fix for 64bit as well, similar to the case

Re: [Openocd-development] [PATCH 1/3] ft2232: Fix configure --with-ftd2xx-linux-tardir

2011-07-12 Thread Steve Bennett
On 11/07/2011, at 11:52 PM, Xiaofan Chen wrote: On Mon, Jul 11, 2011 at 8:14 PM, Steve Bennett ste...@workware.net.au wrote: On 11/07/2011, at 10:03 PM, Xiaofan Chen wrote: On Tue, Jun 28, 2011 at 1:48 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Sun, Jun 26, 2011 at 10:14 PM, Øyvind

[Openocd-development] [PATCH 2/2] ft2232: Failure to get latency should not be fatal

2011-07-12 Thread Steve Bennett
Although this problem is fixed in the latest libftd2xx1.0.5, that version is not yet publically available. Without this fix, the ftd2xx aborts with a fatal error and is thus unusable. Signed-off-by: Steve Bennett ste...@workware.net.au --- src/jtag/drivers/ft2232.c |3 +-- 1 files changed, 1

Re: [Openocd-development] [PATCH 1/3] ft2232: Fix configure --with-ftd2xx-linux-tardir

2011-07-12 Thread Steve Bennett
On 12/07/2011, at 9:04 PM, Spencer Oliver wrote: On 12 July 2011 10:59, Øyvind Harboe oyvind.har...@zylin.com wrote: Great. Øyvind. What needs to be done to get this merged? I don't know this code. Is this a patch that should go into the current release? We're at rc2. Perhaps post a

Re: [Openocd-development] [PATCH 2/2] ft2232: Failure to get latency should not be fatal

2011-07-12 Thread Steve Bennett
On 12/07/2011, at 9:10 PM, Øyvind Harboe wrote: If this problem eventually goes away, then I think it would make sense not to leave cruft in OpenOCD that we have to remove later? The workaround is available on the mailing list... I don't maintain or know much about ft2232, just a general

Re: [Openocd-development] [PATCH 1/2] ft2232: Fix configure --with-ftd2xx-linux-tardir

2011-07-12 Thread Steve Bennett
On 12/07/2011, at 9:11 PM, Spencer Oliver wrote: On 12 July 2011 12:04, Steve Bennett ste...@workware.net.au wrote: For libftd2xx1.0.4, which uses a different directory structure than libftd2xx0.4.16 Without this fix the build fails with version 1.0.4 of the driver. Note that this does

Re: [Openocd-development] [PATCH 2/2] ft2232: Failure to get latency should not be fatal

2011-07-12 Thread Steve Bennett
On 12/07/2011, at 10:18 PM, Spencer Oliver s...@spen-soft.co.uk wrote: On 12 July 2011 13:08, Xiaofan Chen xiaof...@gmail.com wrote: On Tue, Jul 12, 2011 at 7:14 PM, Steve Bennett ste...@workware.net.au wrote: On 12/07/2011, at 9:10 PM, Øyvind Harboe wrote: If this problem eventually goes

Re: [Openocd-development] [PATCH 2/2] ft2232: Failure to get latency should not be fatal

2011-07-12 Thread Steve Bennett
On 13/07/2011, at 6:23 AM, Spencer Oliver wrote: On 12/07/2011 20:56, Peter Stuge wrote: Spencer Oliver wrote: Why are we duplicating effort on two different libraries that accomplish exactly the same thing? Main reason is that ftd2xx works better/faster on windoze. Is it known how

Re: [Openocd-development] OpenOCD 0.5.0-rc2 release

2011-07-12 Thread Steve Bennett
On 13/07/2011, at 11:32 AM, Andrew Leech wrote: On 11 July 2011 07:31, Jean-Christophe PLAGNIOL-VILLARD plagn...@jcrosoft.com wrote: rc2 http://openocd.git.sourceforge.net/git/gitweb.cgi?p=openocd/openocd;a=snapshot;h=d4cd6f032015552f00bf4b5a90f25f5f958e9d9e;sf=tgz I'm assuming

Re: [Openocd-development] Building local bootstrap jimsh0 failed

2011-07-14 Thread Steve Bennett
On 14/07/2011, at 7:19 PM, Spencer Oliver wrote: On 13 July 2011 22:53, Steve Bennett ste...@workware.net.au wrote: Hi Eric, Thanks for the report. This is caused by a couple of things. Firstly, the version of jimtcl used by openocd isn't fully functional when built under mingw. It's

Re: [Openocd-development] Building local bootstrap jimsh0 failed

2011-07-17 Thread Steve Bennett
On 15/07/2011, at 5:30 AM, Jie Zhang wrote: On Thu, Jul 14, 2011 at 12:07 PM, Jie Zhang jzhang...@gmail.com wrote: On Thu, Jul 14, 2011 at 6:17 AM, Steve Bennett ste...@workware.net.au wrote: On 14/07/2011, at 7:19 PM, Spencer Oliver wrote: This is why i mentioned before about adding

Re: [Openocd-development] [PATCH 1/2] ft2232: Fix configure --with-ftd2xx-linux-tardir

2011-07-26 Thread Steve Bennett
On 27/07/2011, at 1:17 AM, Spencer Oliver wrote: On 12 July 2011 15:01, Xiaofan Chen xiaof...@gmail.com wrote: On Tue, Jul 12, 2011 at 9:51 PM, Spencer Oliver s...@spen-soft.co.uk wrote: Try my repo now i have pushed a fix for the warnings. I have just attempted to build under cygwin

Re: [Openocd-development] [PATCH 4/4] flash: add support for deprecated stm32 flash cmds

2011-07-28 Thread Steve Bennett
On 28/07/2011, at 9:52 PM, Spencer Oliver wrote: From: Spencer Oliver ntfr...@users.sourceforge.net Issue warning when the old cmd is used and redirect to new supported one. These deprecated cmds will be removed at some point. Signed-off-by: Spencer Oliver ntfr...@users.sourceforge.net

Re: [Openocd-development] script command

2011-07-28 Thread Steve Bennett
On 29/07/2011, at 1:40 PM, Jie Zhang wrote: Hi, Where is the script command defined? I greped in jimtcl and openocd source code, but could not find it. Thank you! Jie src/helper/startup.tcl line 57 ___ Openocd-development mailing list

Re: [Openocd-development] script command

2011-07-28 Thread Steve Bennett
On 29/07/2011, at 2:06 PM, Steve Bennett wrote: On 29/07/2011, at 1:40 PM, Jie Zhang wrote: Hi, Where is the script command defined? I greped in jimtcl and openocd source code, but could not find it. Thank you! Jie src/helper/startup.tcl line 57 And here's a trick for you. If you

Re: [Openocd-development] script vs source

2011-07-29 Thread Steve Bennett
On 29/07/2011, at 8:45 PM, Jie Zhang jzhang...@gmail.com wrote: Hi, OpenOCD uses script command to execute config file passed through -f option. script command is defined as a function proc script {filename} { source [find $filename] } Thus when executing the config file,

Re: [Openocd-development] 0.5.0 MinGW configure failure

2011-08-10 Thread Steve Bennett
On 10/08/2011, at 3:03 PM, Xiaofan Chen wrote: On Wed, Aug 10, 2011 at 11:44 AM, Steve Bennett ste...@workware.net.au wrote: On 10/08/2011, at 9:43 AM, Xiaofan Chen wrote: It was not up to date but very close. Anyway, I just updated it and the issue is still there with the release zip file

Re: [Openocd-development] 0.5.0 MinGW configure failure

2011-08-10 Thread Steve Bennett
On 10/08/2011, at 6:15 PM, Xiaofan Chen wrote: On Wed, Aug 10, 2011 at 4:11 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Wed, Aug 10, 2011 at 2:11 PM, Steve Bennett ste...@workware.net.au wrote: On 10/08/2011, at 3:03 PM, Xiaofan Chen wrote: FYI: I build the release tarball on windows

Re: [Openocd-development] 0.5.0 MinGW configure failure

2011-08-10 Thread Steve Bennett
On 10/08/2011, at 6:39 PM, Spencer Oliver wrote: On 10 August 2011 07:11, Steve Bennett ste...@workware.net.au wrote: On 10/08/2011, at 3:03 PM, Xiaofan Chen wrote: On Wed, Aug 10, 2011 at 11:44 AM, Steve Bennett ste...@workware.net.au wrote: On 10/08/2011, at 9:43 AM, Xiaofan Chen wrote

Re: [Openocd-development] Replace script with source

2011-08-10 Thread Steve Bennett
On 09/08/2011, at 11:18 PM, Jie Zhang wrote: Hi, Since we are in merge window now, how about merge this patch to replace script with source: https://lists.berlios.de/pipermail/openocd-development/2011-July/020370.html If there is any issue, we still have enough time to revert this

Re: [Openocd-development] Replace script with source

2011-08-10 Thread Steve Bennett
On 11/08/2011, at 11:39 AM, Jie Zhang wrote: On Wed, Aug 10, 2011 at 8:27 PM, Steve Bennett ste...@workware.net.au wrote: On 09/08/2011, at 11:18 PM, Jie Zhang wrote: Hi, Since we are in merge window now, how about merge this patch to replace script with source: https

Re: [Openocd-development] Build error with mingw32

2011-08-12 Thread Steve Bennett
On 13/08/2011, at 6:41 AM, Jie Zhang wrote: The current HEAD cannot build with mingw32 libtool: link: i586-mingw32msvc-gcc -std=gnu99 -g -O2 -I/home/jie/installs/openocd/include -D__USE_MINGW_ANSI_STDIO -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter

Re: [Openocd-development] Build error with mingw32

2011-08-14 Thread Steve Bennett
On 14/08/2011, at 7:11 PM, Spencer Oliver wrote: On Aug 14, 2011 10:01 AM, Xiaofan Chen xiaof...@gmail.com wrote: On Sat, Aug 13, 2011 at 9:38 AM, Jie Zhang jzhang...@gmail.com wrote: On Fri, Aug 12, 2011 at 9:27 PM, Xiaofan Chen xiaof...@gmail.com wrote: This is probably because you

Re: [Openocd-development] 0.5.0 MinGW configure failure

2011-08-16 Thread Steve Bennett
On 12/08/2011, at 11:12 PM, Xiaofan Chen wrote: On Wed, Aug 10, 2011 at 3:39 PM, Xiaofan Chen xiaof...@gmail.com wrote: On Wed, Aug 10, 2011 at 3:34 PM, Olivier Schonken olivier.schon...@gmail.com wrote: Hi Xiaofan In my case I struggled with the same problem for a day or two. That is

Re: [Openocd-development] 0.5.0 MinGW configure failure

2011-08-16 Thread Steve Bennett
On 16/08/2011, at 8:32 PM, Spencer Oliver wrote: On 16 August 2011 11:13, Spencer Oliver s...@spen-soft.co.uk wrote: On 16 August 2011 11:03, Steve Bennett ste...@workware.net.au wrote: On 12/08/2011, at 11:12 PM, Xiaofan Chen wrote: On Wed, Aug 10, 2011 at 3:39 PM, Xiaofan Chen xiaof

Re: [Openocd-development] Jim Tcl problems

2011-09-02 Thread Steve Bennett
On 03/09/2011, at 12:58 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: Jim_Eval_Named is a macro. I don't know why it's not substituted when preprocessing. Maybe make clean will help you. Maybe you need to remove the ccache cache and try again. I've tried what I can think of: rm -rf

Re: [Openocd-development] Jim Tcl problems

2011-09-05 Thread Steve Bennett
On 05/09/2011, at 12:22 AM, Øyvind Harboe wrote: aahhh I think perhaps the problem is that jimtcl fails w/make -j4? Have you tried building openocd jimtcl w/-j4? Works for me. Still seems to me like you have something left lying around since the macros vs function change of

[Openocd-development] [PATCH] Move jim-nvp to openocd

2011-09-29 Thread Steve Bennett
In an upcoming release, I plan to remove jim-nvp from jimtcl. This patch moves it to openocd where it is used. -- µWeb: Embedded Web Framework - http://uweb.workware.net.au/ WorkWare Systems Pty Ltd W: www.workware.net.au P: +61 434 921 300 E: ste...@workware.net.au F: +61 7 3391 6002

Re: [Openocd-development] [PATCH] Move jim-nvp to openocd

2011-09-29 Thread Steve Bennett
It lives in both openocd and jimtcl, but openocd uses it's own version. On 29/09/2011, at 4:39 PM, Øyvind Harboe wrote: So what happens in the transitional period? -- Øyvind Harboe - Can Zylin Consulting help on your project? US toll free 1-866-980-3434 http://www.zylin.com/ -- µWeb:

Re: [Openocd-development] [PATCH] Move jim-nvp to openocd

2011-09-29 Thread Steve Bennett
On 29/09/2011, at 4:43 PM, Øyvind Harboe wrote: On Thu, Sep 29, 2011 at 8:42 AM, Steve Bennett ste...@workware.net.au wrote: It lives in both openocd and jimtcl, but openocd uses it's own version. Because --disable-nvp is used when building OpenOCD? --disable-nvp is the default I have