Re: [Openocd-development] [PATCH] tcl_server: switch to ctrl-z

2010-09-20 Thread Albert ARIBAUD
Le 20/09/2010 20:21, Øyvind Harboe a écrit : On Mon, Sep 20, 2010 at 7:46 PM, Peter Stuge wrote: Øyvind Harboe wrote: ctrl-z Note that this is EOF in Windows. OK. What would the *perfect* char be in this case then? It's nice if it is easily testable with telnet. ^G is 'BELL' IIRC; I do

Re: [Openocd-development] Codecheck

2009-12-16 Thread Albert ARIBAUD
Carsten Breuer a écrit : > Nonetheless: Malloc can fail and we have to take care of that. Well, yes for the first part, and maybe or even no for the second. Yes, malloc can fail. But when it fails, what *can* you do apart from trying to fail as gracefully as possible? And failing gracefully is

Re: [Openocd-development] Codecheck

2009-12-16 Thread Albert ARIBAUD
Øyvind Harboe a écrit : > The zy1000 has "infinite" ram w.r.t. small allocations(32 or > 64mBytes depending on revision), so not checking small > allocations is *highly unlikely * to cause problems for any > embedded host with oodles of ram(megabytes). To be completely honest, it depends. If ther

Re: [Openocd-development] OpenOCD Coding (was broken)

2009-12-16 Thread Albert ARIBAUD
Carsten Breuer a écrit : > The correct function is selected by the compiler and the overhead > is IMO in our area not an issue. In embedded developpment, "IMO" can be argued to be not precise enough. > QT and with it KDE are build on virtual functions. But then, QT and KDE do not have a requi

Re: [Openocd-development] OpenOCD broken

2009-12-13 Thread Albert ARIBAUD
Albert ARIBAUD a écrit : > Also note splint has not been updated for a long time, as I discovered > when going to its home site. There are some alternatives mentioned on Wikipedia: <http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis#C> I like clang's way of

Re: [Openocd-development] OpenOCD broken

2009-12-13 Thread Albert ARIBAUD
Øyvind Harboe a écrit : > On Sun, Dec 13, 2009 at 3:04 PM, Albert ARIBAUD > wrote: >> Øyvind Harboe a écrit : >> >>>> -Wall is the minimum that should be applied to source code. Running it >>>> through Splint (or some other verification tool) would no

Re: [Openocd-development] OpenOCD broken

2009-12-13 Thread Albert ARIBAUD
Øyvind Harboe a écrit : >> -Wall is the minimum that should be applied to source code. Running it >> through Splint (or some other verification tool) would not hurt either. > > Is there an open source lint tool that's worthwhile to use? > > Did you try splint on OpenOCD? Apart from Splint, I ha

Re: [Openocd-development] OpenOCD broken

2009-12-13 Thread Albert ARIBAUD
Øyvind Harboe a écrit : > On Sun, Dec 13, 2009 at 12:13 AM, Carsten Breuer > wrote: >> Hi all, >> >> >> "treat warning as errors" (-wall) is a fine thing but sometimes breaks >> the build.. > > This is a good thing to have as a default behavior, we want warning > fixes fed back. It cleans up the

Re: [Openocd-development] New object-orientated C++ architecture for OpenOCD?

2009-12-09 Thread Albert ARIBAUD
Freddie Chopin a écrit : > The "overhead" of C++ is also doubtful - when you know "how to do it" > the overhead will be 0. BTW you also need to know "how to do it" to > write C++-in-C, so... ... and this overhead is 0 when you know "how to do it", isn't it? :) More seriously: I don't favor C ove

Re: [Openocd-development] libftdi 0.17 coming soon?

2009-12-04 Thread Albert ARIBAUD
; As above, but simply 'test "${FTDILIBS}"' or 'test -n'. Also agreed. New patch, with good-practice comments added. If spacing issues are still there, I'll re-email it through git send-email to make sure. Signed-off-by: Albert Aribaud --- configure.in

Re: [Openocd-development] libftdi 0.17 coming soon?

2009-12-04 Thread Albert ARIBAUD
(apologies, David, for the private-only mail) David Brownell a écrit : > On Friday 04 December 2009, Albert ARIBAUD wrote: >> While at it, the OpenOCD configure.in should use pgk-config or >> libftdi-config to find out the current LIBFTDI libs and CFLAGS, >> especi

Re: [Openocd-development] libftdi 0.17 coming soon?

2009-12-04 Thread Albert ARIBAUD
Hi, While at it, the OpenOCD configure.in should use pgk-config or libftdi-config to find out the current LIBFTDI libs and CFLAGS, especially the include path. Regards, Albert. David Brownell a écrit : > Reason for OpenOCD folk to care is that "previously failed..." > below. > > Y'all are enc

Re: [Openocd-development] [rfc] improving 'help'... volunteers?

2009-12-01 Thread Albert ARIBAUD
David Brownell a écrit : > On Tuesday 01 December 2009, Zach Welch wrote: The use of angle brackets intends to distinguish parameter names from literal arguments. Thus [] means an optional thing which semantically will be used as a "foo", whereas [foo|bar] means you can option

Re: [Openocd-development] [RFC] massive command restructuring!!!

2009-11-29 Thread Albert ARIBAUD
Øyvind Harboe a écrit : >> Finally, would it be logical to create the dynamic flash banks commands >> as subcommands of their relevant target? >> >>foo.cpu flash bank bank0 . # but no arg anymore >>foo.cpu bank0 info # presently, it's 'flash info bank0' > > First of all: alt

Re: [Openocd-development] How to set includ path with "libftdi" in configure?

2009-11-26 Thread Albert ARIBAUD
loody a écrit : > Hi: > thanks for your kind help ^^ > it works find right now. > 2009/11/26 Dean Glazeski : >> You appear to mixing the two FTDI libraries in that configure command. If >> you want to use the FTD2XX libraries, you need to use --enable-ft2232_ftd2xx >> instead of --enable-ft2232_li

Re: [Openocd-development] [PATCH] Fix LIBFTDI path issue

2009-11-26 Thread Albert ARIBAUD
David Brownell a écrit : > On Wednesday 25 November 2009, Albert ARIBAUD wrote: >>> http://packages.debian.org/squeeze/amd64/libftdi-dev/filelist >>> >>> Maybe they treat this /usr/include/ftdi thing as a bug and >>> work around it ... :) >> Hmm... C

Re: [Openocd-development] [PATCH] Fix LIBFTDI path issue

2009-11-26 Thread Albert ARIBAUD
Albert ARIBAUD a écrit : > David Brownell a écrit : >> On Wednesday 25 November 2009, Albert ARIBAUD wrote: >>> Dean Glazeski a écrit : >>>> This patch shouldn't be necessary. I have the libftdi version working >>>> fine with current he

Re: [Openocd-development] [PATCH] Fix LIBFTDI path issue

2009-11-25 Thread Albert ARIBAUD
David Brownell a écrit : > On Wednesday 25 November 2009, Albert ARIBAUD wrote: >> Dean Glazeski a écrit : >>> This patch shouldn't be necessary. I have the libftdi version working >>> fine with current head. I think this might be an issue with mixing >&g

Re: [Openocd-development] [PATCH] Fix LIBFTDI path issue

2009-11-25 Thread Albert ARIBAUD
Dean Glazeski a écrit : > This patch shouldn't be necessary. I have the libftdi version working > fine with current head. I think this might be an issue with mixing > libraries in the configure command. I've responded to the next email > with more information. > > // Dean Glazeski Well it s

Re: [Openocd-development] How to set includ path with "libftdi" in configure?

2009-11-25 Thread Albert ARIBAUD
loody a écrit : > dear all: > I use configure --help, but I cannot see where I can tell openocd > where the library of ft2232. > I use following configure even I don't use cygwin and I use lib > instead of device driver to compile it. > > ./configure --enable-ft2232_libftdi --prefix=`pwd`/build >

[Openocd-development] [PATCH] Fix LIBFTDI path issue

2009-11-25 Thread Albert Aribaud
Signed-off-by: Albert Aribaud --- configure.in |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure.in b/configure.in index 8ba8951..0adf014 100644 --- a/configure.in +++ b/configure.in @@ -932,6 +932,7 @@ if test $build_ft2232_libftdi = yes ; then # We assume

Re: [Openocd-development] feroceon-based target bring-up issue

2009-11-24 Thread Albert ARIBAUD
Albert ARIBAUD a écrit : > David Brownell a écrit : >> On Tuesday 24 November 2009, Albert ARIBAUD wrote: >>> I did investigate by fixing 0x3 directly in feroceon.cfg, and it does >>> not improve: >>> >>>> Error: IR capture error at bit 4, saw 0x0

Re: [Openocd-development] feroceon-based target bring-up issue

2009-11-24 Thread Albert ARIBAUD
David Brownell a écrit : > On Tuesday 24 November 2009, Albert ARIBAUD wrote: >> I did investigate by fixing 0x3 directly in feroceon.cfg, and it does >> not improve: >> >>> Error: IR capture error at bit 4, saw 0x09 not 0x...3 > > Are you sure you didn'

Re: [Openocd-development] feroceon-based target bring-up issue

2009-11-24 Thread Albert ARIBAUD
David Brownell a écrit : > On Tuesday 24 November 2009, Albert ARIBAUD wrote: >>> Error: feroceon.cpu: IR capture error; saw 0x09 not 0x01 > > jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expecte

[Openocd-development] feroceon-based target bring-up issue

2009-11-24 Thread Albert ARIBAUD
Hi, I am trying to bring-up an ED Mini V2, a feroceon-based board with no tRST/sRST signals available, only TCLK/TMS/TDI/TDO, and an Olimex ARM-USB-OCD. This ED-Mini has a working U-boot flashed already (I am aiming at replacing this U-boot with a newer version). To begin with, I've made a ba

Re: [Openocd-development] How to add support for a board?

2009-11-18 Thread Albert ARIBAUD
David Brownell a écrit : > On Wednesday 18 November 2009, Albert ARIBAUD wrote: >> This board has a minimal JTAG, with no rRST or tRST line, only TCKK, >> TMS, DI and DI. This is different from the OpenRD or Sheevaplug configs >> (which also have a feroceon). >> >&

[Openocd-development] How to add support for a board?

2009-11-18 Thread Albert ARIBAUD
Hi all, I would like to help add support in OpenOCD for a new board, found in the LaCie ED Mini V2. This board is based on a Marvell Orion5x SoC, which contains a Feroceon similar to that of a kirkwood. This board has a minimal JTAG, with no rRST or tRST line, only TCKK, TMS, DI and DI. This i

Re: [Openocd-development] configure Issue with current libftdi and openocd

2009-11-16 Thread Albert ARIBAUD
Zach Welch a écrit : > On Mon, 2009-11-16 at 13:57 +0100, Albert ARIBAUD wrote: >> Hi, >> >> I have compiled and installed libftdi from GIT, forcing the prefix to >> /usr. The lib header files are then installed into /usr/include/libftdi. >> >> Howeve

[Openocd-development] configure Issue with current libftdi and openocd

2009-11-16 Thread Albert ARIBAUD
Hi, I have compiled and installed libftdi from GIT, forcing the prefix to /usr. The lib header files are then installed into /usr/include/libftdi. However, the current configure.in for OpenOCD expects file ftdi.h to be in ${prefix}/include, not ${prefix}/include/libftdi, thus ./configure fails