Re: [Openocd-development] JTAG, FT2232 and JLink

2009-05-25 Thread Dick Hollenbeck
Unsubscribe. ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] JTAG, FT2232 and JLink

2009-05-25 Thread Dick Hollenbeck
d most of them now. > > Here comes my patch. > > Best regards > Magnus > > > New jtag statetables in ft2232 and jlink > > > The parts concering jtag state tables and transitions are from Dick > Hollenbeck > &g

Re: [Openocd-development] [PATCH] remove cmd_queue_cur_state

2009-05-25 Thread Dick Hollenbeck
Magnus Lundin wrote: > Dick Hollenbeck skrev: >> Zach, >> >> I think this patch is fundamentally wrong and is a disaster the >> moment it is applied. >> >> The queue sits between the jtag api and the drivers. The api calls >> track "future"

Re: [Openocd-development] [PATCH] remove cmd_queue_cur_state

2009-05-23 Thread Dick Hollenbeck
Zach, I think this patch is fundamentally wrong and is a disaster the moment it is applied. The queue sits between the jtag api and the drivers. The api calls track "future" state according to the most recent api call submitted (and put onto the back end of the queue) via the cmd_queue_cur_st

[Openocd-development] [PATCH]es, closing out open commitments

2009-05-05 Thread Dick Hollenbeck
* xsvf.patch: This simplifies XSTATE handling, and protects against illegal state transitions that might be in an SVF file. Previous code was vulnerable to a bad path. They are now handled through a robust use of the tms_seq[] table. With this patch and my xsvf_tools, I was able to work w

Re: [Openocd-development] [PATCH] ft2232.c major re-work and clock reducing tms_seq support

2009-05-05 Thread Dick Hollenbeck
Zach, You are a quality guy and I want to go on record, with you being the recipient, of why I am leaving the project. >>> Yes, it could be separated. I could do it myself, but I have my own >>> list of tasks. If the patch was separated and only portions of it were ap

Re: [Openocd-development] [PATCH] ft2232.c major re-work and clock reducing tms_seq support

2009-05-03 Thread Dick Hollenbeck
>> I have never seen a project that needs to be forked as badly as this >> one. You sit around and nit pick about about which dinner glasses to >> pour the water into. Somebody shows up with a firetruck wanting to fill >> the swimming pool and you can't handle it. >> >> This firetruck ain't w

[Openocd-development] [CMAKE] adds mingw cross from *nix

2009-05-02 Thread Dick Hollenbeck
#Using_executables_in_the_build_created_during_the_build Index: src/pld/CMakeLists.txt === --- src/pld/CMakeLists.txt (revision 0) +++ src/pld/CMakeLists.txt (revision 0) @@ -0,0 +1,11 @@ +# Copyright 2009 SoftPLC Corporation http://softplc.com +# Dick Hollenbeck +# License: GPL

[Openocd-development] [PATCH] build the mingw DLL

2009-05-02 Thread Dick Hollenbeck
Index: src/openocd.c === --- src/openocd.c (revision 1588) +++ src/openocd.c (working copy) @@ -228,6 +228,21 @@ int httpd_start(void); void httpd_stop(void); + +#if !BUILD_HTTPD +/* implementations of OpenOCD that uses multithre

Re: [Openocd-development] [PATCH] ft2232.c major re-work and clock reducing tms_seq support

2009-05-01 Thread Dick Hollenbeck
> Dick, > > Once again, "it's not you, it's me." Blah, blah, blah :) > English please. No idea what the above sentence is saying. > On Fri, 2009-05-01 at 20:02 -0500, Dick Hollenbeck wrote: > >> This patch is large and: >> >

[Openocd-development] [PATCH] latest CMake support

2009-05-01 Thread Dick Hollenbeck
ion 0) @@ -0,0 +1,11 @@ +# Copyright 2009 SoftPLC Corporation http://softplc.com +# Dick Hollenbeck +# License: GPL v2 + +SET(PLD_SRCS + pld.c + xilinx_bit.c + virtex2.c +) + +add_library(pld STATIC ${PLD_SRCS}) Property changes on: src/pld/CMakeList

Re: [Openocd-development] The List (of OpenOCD Tasks) for r1587

2009-05-01 Thread Dick Hollenbeck
of an AGDI > plug-in for using OpenOCD; Dario Vecchio posted his implementation along > with references to the related specifications; I hope someone will take > these pieces and provide a complete and robust solution (in tree?). > > OMAP3 and Cortex-{M3,A8} support were improved by

Re: [Openocd-development] The List (of OpenOCD Tasks) for r1587

2009-05-01 Thread Dick Hollenbeck
Øyvind Harboe wrote: > On Fri, May 1, 2009 at 6:24 PM, Dick Hollenbeck wrote: > >> That function basically exists in the xsvf.c file, so some factoring may be >> possible. >> > > Ah. Thanks! > > Rename to jtag_add_statemove() & move into jtag.c as a

Re: [Openocd-development] tab vs spaces

2009-05-01 Thread Dick Hollenbeck
Magnus Lundin wrote: > Dick Hollenbeck wrote: > >> Laurent Gauch wrote: >> >> >>>> Dick Hollenbeck wrote: >>>> >>>> >>>> >>>>> / Are other folks having problems with tab expan

Re: [Openocd-development] The List (of OpenOCD Tasks) for r1587

2009-05-01 Thread Dick Hollenbeck
That function basically exists in the xsvf.c file, so some factoring may be possible. Here is a copy of my current work: > Single stepping is broken in ARM11 w/parport interface(and > others). I'm working on adding a jtag_add_statemove() fn > that will sit on top of jtag_add_pathmove() that is

Re: [Openocd-development] tab vs spaces

2009-05-01 Thread Dick Hollenbeck
Laurent Gauch wrote: >> Dick Hollenbeck wrote: >> >>> / Are other folks having problems with tab expansion differences between >>> >> />/ editors? >> />/ >> />/ I load jtag.c into two different editors and get

[Openocd-development] tab vs spaces

2009-05-01 Thread Dick Hollenbeck
Are other folks having problems with tab expansion differences between editors? I load jtag.c into two different editors and get two different results when tab width is set to 4. This makes it difficult to view a table like tms_seq in the two editors. The editors are well established, JEdit a

Re: [Openocd-development] Converge towards 0.2?

2009-05-01 Thread Dick Hollenbeck
Øyvind Harboe wrote: >> - Changing JTAG state transitions to use shortest path rather than 7 clocks >> - Fixing all the drivers that assumed 7 clocks per transition >> > > Why would you want to change this? We've got pathmove for those cases > where the path matters...? > > Said another way

[Openocd-development] [PATCH] openocd.c

2009-04-30 Thread Dick Hollenbeck
This lets the #define OPENOCD_VERSION refer to the config.h contents, by moving it below the #include config.h Please commit, thanks. Dick Index: src/openocd.c === --- src/openocd.c (revision 1570) +++ src/openocd.c (working copy

Re: [Openocd-development] C99 compatibility (Was: MSVC compatibility (Was: [PATCH] CMake))

2009-04-30 Thread Dick Hollenbeck
Rick Altherr wrote: > Actually, the TCL layer is using TCL objects which in the JIM > implementation of TCL, happen to be pointers. Of course, with JIM, we > didn't need to build our own runtime, so things like determining the > type of an object is handled for us. > > I've had a number of idea

Re: [Openocd-development] C99 compatibility (Was: MSVC compatibility (Was: [PATCH] CMake))

2009-04-30 Thread Dick Hollenbeck
Albert Cahalan wrote: > On Thu, Apr 30, 2009 at 1:59 AM, Michael Bruck wrote: > >> On Thu, Apr 30, 2009 at 7:12 AM, Zach Welch wrote: >> > > >>> At the most fundamental level, it comes down to this: >>> >>> C == imperative programming >>> C++ == object-oriented programming >>> >>> Th

Re: [Openocd-development] C99 compatibility (Was: MSVC compatibility (Was: [PATCH] CMake))

2009-04-30 Thread Dick Hollenbeck
Michael Schwingen wrote: > Dick Hollenbeck wrote: > >> As I said before, I personally would be willing to give up designated >> initializers, but really nothing more within C99. And I really love the >> iterator type stuff: >> >> for( int i=0; i<7; ++

Re: [Openocd-development] C99 compatibility (Was: MSVC compatibility (Was: [PATCH] CMake))

2009-04-29 Thread Dick Hollenbeck
> Sorry I have lost most of my enthusiasm, but I don't understand your > problem probably. Please explain if you can. > > Dick > > A candid analysis would paint me extremely resentful for having to do anything to support Microsoft in any way. If they cannot keep up, there stupid C compiler

Re: [Openocd-development] C99 compatibility (Was: MSVC compatibility (Was: [PATCH] CMake))

2009-04-29 Thread Dick Hollenbeck
Igor Skochinsky wrote: > Hello Dick, > > Thursday, April 30, 2009, 4:28:54 AM, you wrote: > > > >>> Due to the lack of prior opposition, I had been debating whether to >>> simply commit a change that adds -std=c99 and seeing how the community >>> reacts (since I can now revert it quickly if it p

Re: [Openocd-development] C99 compatibility (Was: MSVC compatibility (Was: [PATCH] CMake))

2009-04-29 Thread Dick Hollenbeck
> Due to the lack of prior opposition, I had been debating whether to > simply commit a change that adds -std=c99 and seeing how the community > reacts (since I can now revert it quickly if it poses a real problem). > The -std=c99 option is a big positive for me. I like it. There are C co

Re: [Openocd-development] [PATCH] failure in ft2232.c on cygwin

2009-04-29 Thread Dick Hollenbeck
Michael Bruck wrote: > This problem was introduced by r1559 in replacements.h > > in ft2232.c windows.h (or more precise winsock2.h) must be included > after sys/select.h > > Michael > I put this change into my pending patch, so it can be piggy backed there. That will be on the list by end of

Re: [Openocd-development] ft2232.c status

2009-04-29 Thread Dick Hollenbeck
Dick Hollenbeck wrote: > The new driver is working ok with the calls to > tap_get_tms_path_len(start_state, goal_state); > > If I use the old version of the new binary tms_seqs table with the new > driver, I see the exact same behavior on my ARM9 board as with the > ft2232.c

[Openocd-development] ft2232.c status

2009-04-29 Thread Dick Hollenbeck
The new driver is working ok with the calls to tap_get_tms_path_len(start_state, goal_state); If I use the old version of the new binary tms_seqs table with the new driver, I see the exact same behavior on my ARM9 board as with the ft2232.c in HEAD. If I use the new version of the binary tms_s

Re: [Openocd-development] C99 compatibility (Was: MSVC compatibility (Was: [PATCH] CMake))

2009-04-29 Thread Dick Hollenbeck
Ironically, if the project was compilable with C++, there would likely be *more* compatibility with MS VC++ than what we have now using C. I say that because Kicad can be compiled by either, using CMake. Dick ___ Openocd-development mailing list Open

Re: [Openocd-development] C99 compatibility (Was: MSVC compatibility (Was: [PATCH] CMake))

2009-04-29 Thread Dick Hollenbeck
Zach, Your work is appreciated, by me and others. > On Wed, 2009-04-29 at 13:24 -0500, Dick Hollenbeck wrote: > [snip] > >> The C99 stuff is purely arbitrary IMO, there is almost always another >> way to code those things. And rather than ifdef-ing them out, I would

Re: [Openocd-development] [PATCH] CMake

2009-04-29 Thread Dick Hollenbeck
>> And I am allergic to Windows, so there will need to be a "CMake on Windows" >> champion to step up and take this bull by the horns. >> > > Good luck finding that one :) > Not my job. I don't use Windows. But I think the folks that do have found their champion. :) > > > I found

Re: [Openocd-development] [PATCH] CMake

2009-04-29 Thread Dick Hollenbeck
Michael Bruck wrote: > I tried that and it seems IS_CYGWIN is not set correctly on cygwin. Any idea ? > > Michael > Michael, I see a potential solution that is worth a try. Move these lines: if(CYGWIN) set(IS_CYGWIN, true) else(CYGWIN) set(IS_CYGWIN, false) endif(CYGWIN) if(MINGW)

Re: [Openocd-development] MSVC compatibility (Was: [PATCH] CMake)

2009-04-29 Thread Dick Hollenbeck
> As I said, the makefile generation mostly works "out of box" (I only > had to specifty location of libftd2xx manually). Right now I'm trying > nmake makefiles, not VS projects. > > >> To deal with your issues, and assuming Windows, I would stick with the GNU >> compiler as your first attempt,

Re: [Openocd-development] [PATCH] CMake

2009-04-29 Thread Dick Hollenbeck
> I tried that and it seems IS_CYGWIN is not set correctly on cygwin. Any idea ? > > Michael > > Michael, Thanks for trying this. How do you build openocd on windows, does it require CYGWIN or is there another way? Using CMake on Windows, a reasonable goal would be to ween ourselves of

Re: [Openocd-development] MSVC compatibility (Was: [PATCH] CMake)

2009-04-29 Thread Dick Hollenbeck
Igor Skochinsky wrote: > Hello All, > > Tuesday, April 28, 2009, 7:29:46 PM, Dick wrote: > > DH> Latest. > DH> Paaleese commit any time. > > So I decided to try the legendary CMake compatibility and compile > OpenOCD with native Win32 MSVC. The makefile generation went mostly > without a hitch, but

Re: [Openocd-development] Variations in states produced by JTAG hardware drivers (was: [PATCH] Jeff Williams stable state table)

2009-04-28 Thread Dick Hollenbeck
Øyvind Harboe wrote: > On Tue, Apr 28, 2009 at 10:48 PM, Dick Hollenbeck wrote: > >> Michael Bruck wrote: >> >>> So my question would be: does anyone know if the drivers produce >>> different state transitions (except for idling on stable states) for

Re: [Openocd-development] [PATCH] CMake

2009-04-28 Thread Dick Hollenbeck
the day I can delete the above script. Dick Index: src/pld/CMakeLists.txt === --- src/pld/CMakeLists.txt (revision 0) +++ src/pld/CMakeLists.txt (revision 0) @@ -0,0 +1,11 @@ +# Copyright 2009 SoftPLC Corporation http://softpl

Re: [Openocd-development] Variations in states produced by JTAG hardware drivers (was: [PATCH] Jeff Williams stable state table)

2009-04-28 Thread Dick Hollenbeck
Michael Bruck wrote: > So my question would be: does anyone know if the drivers produce > different state transitions (except for idling on stable states) for > the jtag_* calls, including more complex stuff that involves > jtag_add_ir_scan etc. ? > This is a superbly excellent question. One t

Re: [Openocd-development] [PATCH] Jeff Williams stable state table

2009-04-28 Thread Dick Hollenbeck
nd states. > > * I agree with Michael, put the restrictions in the upper levels, that > would be state_move > > Regards, > Magnus > > > > Dick Hollenbeck wrote: > >> Michael, >> >> >> >>> 1. The underlaying jtag_* layer

[Openocd-development] [PATCH] ft2232.c

2009-04-28 Thread Dick Hollenbeck
This adds: * calls to tap_get_tms_path_len(start, end); * adds buffer overflow protection in the form of a few well placed asserts(). * numerous comments and documentation references. * attempts to do diligent state transition logging, making it easier to track moves to ANY tap state at any

Re: [Openocd-development] [PATCH] Jeff Williams stable state table

2009-04-28 Thread Dick Hollenbeck
riction should be retired at the earliest > possible opportunity. And it should weighted if the benefits of > supporting severely restricted JTAG hardware outweigh the problems of > adding complexity and potential for errors in the target drivers. > > At the least I would like to know if it

[Openocd-development] [PATCH] tap_get_tms_path_len()

2009-04-28 Thread Dick Hollenbeck
This patch adds the platform for experimentation of state path transitions using TMS sequences shorter than 7 clocks. It will break nothing, I promise. If you want to experiment with the new table at line 3143 in jtag.c, then just enable that #if statement at line 3127 and augment your driver

[Openocd-development] [PATCH] CMake

2009-04-28 Thread Dick Hollenbeck
://softplc.com +# Dick Hollenbeck +# License: GPL v2 + +SET(PLD_SRCS + pld.c + xilinx_bit.c + virtex2.c +) + +add_library(pld STATIC ${PLD_SRCS}) Property changes on: src/pld/CMakeLists.txt ___ Added: svn:mime-type + text/plain

Re: [Openocd-development] [PATCH] Jeff Williams stable state table

2009-04-28 Thread Dick Hollenbeck
Øyvind Harboe wrote: > I'm concerned about backwards compatibility on this one. > > I'd like to see a compile/runtime option to switch between > the old/new table. > > E.g. I suspect that ARM11 has some dependencies on > the precise paths taken today and that really it should > have a couple of mor

Re: [Openocd-development] [PATCH] Jeff Williams stable state table

2009-04-28 Thread Dick Hollenbeck
Dick Hollenbeck wrote: > Just a heads up on this table. Because the old table had an implicit > length of 7 bits understood, often there are "clock consumption" stages > in the old path, enough to consume 7 clock cycles and still get to the > final destination. > >

Re: [Openocd-development] [PATCH] Jeff Williams stable state table

2009-04-28 Thread Dick Hollenbeck
Just a heads up on this table. Because the old table had an implicit length of 7 bits understood, often there are "clock consumption" stages in the old path, enough to consume 7 clock cycles and still get to the final destination. That is, if the transition needed less than 7 clocks, there st

Re: [Openocd-development] [PATCH] Jeff Williams stable state table

2009-04-28 Thread Dick Hollenbeck
Magnus Lundin wrote: >> It would be nice to get some comments on the 8 bit sequence for entering >> RESET. >> >> I think the reasoning needs to be documented, else we go back to 7 bits? >> > > Agree, or even use shortest path, I think the state transitions should be > shortest path. Ok, agre

Re: [Openocd-development] [PATCH] Jeff Williams stable state table

2009-04-28 Thread Dick Hollenbeck
It would be nice to get some comments on the 8 bit sequence for entering RESET. I think the reasoning needs to be documented, else we go back to 7 bits? Dick ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.ber

Re: [Openocd-development] [PATCH] Jeff Williams stable state table

2009-04-28 Thread Dick Hollenbeck
Revised. Found a bug in one of the bit counts. Removed some redundant error checks. Dick Index: src/jtag/jtag.h === --- src/jtag/jtag.h (revision 1548) +++ src/jtag/jtag.h (working copy) @@ -181,7 +181,26 @@ */ int tap_get_tms_

Re: [Openocd-development] cortex_swjdp.c

2009-04-27 Thread Dick Hollenbeck
Zach Welch wrote: > On Mon, 2009-04-27 at 09:51 -0500, Dick Hollenbeck wrote: > >> This was removed from the repo. >> >> Why? >> >> The project will not build. >> > > Please be sure to use --enable-maintainer-mode with configure. If you >

[Openocd-development] [PATCH] Jeff Williams stable state table

2009-04-27 Thread Dick Hollenbeck
This puts the bit count into the tms_seq table and adds the function: int tap_get_tms_path_len( tap_state_t from, tap_state_t to ) It may break the ft2232 driver, but I have a fix coming for that in about 6 hours. I have it written but have to run out for awhile to hit some tennis balls.

Re: [Openocd-development] [PATCH] experimental jtag+jlink patches

2009-04-27 Thread Dick Hollenbeck
Duane Ellis wrote: > Dick Hollenbeck wrote: >> Duane, >> >> This is the 3rd time now I am mentioning my need to get after the >> ft2232.c driver code, starting Monday. I am happy to start from >> your starting point or from HEAD, but once I start, I won&#x

[Openocd-development] [PATCH] jtag.h macros

2009-04-27 Thread Dick Hollenbeck
Collect some macros, add DIM() Collection can be moved but at least they are starting to be gathered up. Dick Index: src/jtag/jtag.h === --- src/jtag/jtag.h (revision 1545) +++ src/jtag/jtag.h (working copy) @@ -40,7 +40,18 @@ #de

[Openocd-development] cortex_swjdp.c

2009-04-27 Thread Dick Hollenbeck
This was removed from the repo. Why? The project will not build. Dick ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] Some notes about JTAG and TAP

2009-04-27 Thread Dick Hollenbeck
Zach Welch wrote: > On Fri, 2009-04-24 at 18:39 +0200, Magnus Lundin wrote: > [snip] > >>>static tap_state_t exception_path[] = { >>>TAP_DREXIT2, >>>TAP_DRSHIFT, >>>TAP_DREXIT1, >>>

Re: [Openocd-development] jtag_add_pathmove

2009-04-24 Thread Dick Hollenbeck
Øyvind Harboe wrote: > On Fri, Apr 24, 2009 at 7:52 AM, Dick Hollenbeck wrote: > >> Why is this code in jtag_add_pathmove()? >> >> >> ?? >> >>/* the last state has to be a stable state */ >>if (!tap_is_state_stable(path[nu

[Openocd-development] jtag_add_pathmove

2009-04-23 Thread Dick Hollenbeck
Why is this code in jtag_add_pathmove()? ?? /* the last state has to be a stable state */ if (!tap_is_state_stable(path[num_states - 1])) { LOG_ERROR("BUG: TAP path doesn't finish in a stable state"); exit(-1); } ??? It is not

Re: [Openocd-development] [PATCH] experimental jtag+jlink patches

2009-04-23 Thread Dick Hollenbeck
Duane Ellis wrote: > zack> [arrays] > > Dick> [nak arrays, they get out of sync, etc] > > ???> [use C99 array initializers] > > All well and good, but remember their is this big nasty other compiler > that does not support C99... openocd does not build with that compiler. Correct, and C++ does n

Re: [Openocd-development] Some notes about JTAG and TAP

2009-04-23 Thread Dick Hollenbeck
Magnus Lundin wrote: > Hi, here are som thoughts after looking throuh some parts of the jtag > subsystem. > > What is a stable state ? A state that is unchanged or a state that is > unchanged and has no sideeffects ? Only RESET and PAUSE ? > A stable state is one that can persist with subse

Re: [Openocd-development] CMake tricks

2009-04-23 Thread Dick Hollenbeck
Øyvind Harboe wrote: > Ironically, resisting the CMake patch, might the best > way to get people to stand up and report their interst ;-) > > I'm starting to be more convinced that having both > committed to svn is not detrimental to OpenOCD, > the crowd is growing and you're getting some good > na

Re: [Openocd-development] The problem with testing target hardware

2009-04-23 Thread Dick Hollenbeck
> The device is really an > easedropping tool but the brains behind it would be back on the PC, > perhaps a separate process which only looks at the serial port, and is > probably written in Python if I were to do it. > > This keeps the cost out of the device, and puts the emulation software >

Re: [Openocd-development] The problem with testing target hardware

2009-04-23 Thread Dick Hollenbeck
Øyvind Harboe wrote: >> In others words: nothing beats testing with a real target and there will >> always be new devices that require some patching. >> > > Most of the time the trouble is with bugs and quirks in the target > hardware and not actually bugs in OpenOCD as such > > > Funny

Re: [Openocd-development] The problem with testing target hardware

2009-04-23 Thread Dick Hollenbeck
R.Doss wrote: > >>> now on The >>> > List with numerous bullets beneath it. > > Yes, this is an FPGA with a serial port on it?The is >>> your universal >>> JTAG TAP emulator, which gives feedback about the path than >>> an

Re: [Openocd-development] [PATCH] experimental jtag+jlink patches

2009-04-22 Thread Dick Hollenbeck
Magnus Lundin wrote: > Dick Hollenbeck wrote: > >> Magnus Lundin wrote: >> >>> The tap state engine will not change any time soon. >>> >>> Hopefully the statenumbers will stay. >>> >>> But there will probably be work on shortes

Re: [Openocd-development] [PATCH] experimental jtag+jlink patches

2009-04-22 Thread Dick Hollenbeck
Magnus Lundin wrote: > The tap state engine will not change any time soon. > > Hopefully the statenumbers will stay. > > But there will probably be work on shortest path tables, path transition > tables with fixed mumber of tap transition etc. For this type of work I > think an array is a better

Re: [Openocd-development] CMake tricks

2009-04-22 Thread Dick Hollenbeck
Magnus Lundin wrote: > OK, I am a developer, I am lazy and my only strong feelings about build > systems is "I dont care, I dont want to know, and a do not want to > learn". Sure, sometimes we have to do this and perfect builds with > clean installations for every platform is an art to admire a

Re: [Openocd-development] The List (of OpenOCD Tasks) for r1509

2009-04-22 Thread Dick Hollenbeck
Zach Welch wrote: > On Wed, 2009-04-22 at 16:04 -0500, Dick Hollenbeck wrote: > >> Zach Welch wrote: >> >>> On Wed, 2009-04-22 at 14:51 -0500, Dick Hollenbeck wrote: >>> >>> >>>>>> Nice work Zach. >>>>

[Openocd-development] CMake tricks

2009-04-22 Thread Dick Hollenbeck
This was posted to another project and it lists some nice things about CMake: 1) you can run ccmake (yes, extra c in front) to fine tune the configuration options interactively if your first choices are wrong, inside a nice GUI. 2) you can run cmake to do out of tree builds. This is nice

Re: [Openocd-development] [PATCH] experimental jtag+jlink patches

2009-04-22 Thread Dick Hollenbeck
Michael Schwingen wrote: > Dick Hollenbeck wrote: > >> I nak the arrays. I hate them, they are a crash waiting to happen. >> >> > Why? > > >> Put the same logic into a series of switches please, nested if necessary. >> >> Switches

Re: [Openocd-development] The List (of OpenOCD Tasks) for r1509

2009-04-22 Thread Dick Hollenbeck
Zach Welch wrote: > On Wed, 2009-04-22 at 14:51 -0500, Dick Hollenbeck wrote: > >>>> Nice work Zach. >>>> >>>> >>> Thanks Dick. But nothing else for me to add? :) >>> >>> >> Yes, I would

Re: [Openocd-development] The List (of OpenOCD Tasks) for r1509

2009-04-22 Thread Dick Hollenbeck
>> Nice work Zach. >> > > Thanks Dick. But nothing else for me to add? :) > Yes, I would ask that folks *try* out the CMake support. I think they have the potential to help some Windows folks who might get roadblocked at cygwin requirements. > >> Maybe this file can be put int

Re: [Openocd-development] [PATCH] experimental jtag+jlink patches

2009-04-22 Thread Dick Hollenbeck
Zach Welch wrote: > Hi all, > > Unless I accidentally missed something, the attached patches provide the > last _functional_ changes in Jeff Williams' J-Link patch; my final task > will be to extract and apply the debugging improvements that he made, as > it looks like they will then need to be imm

Re: [Openocd-development] The problem with testing target hardware

2009-04-22 Thread Dick Hollenbeck
Zach Welch wrote: > On Wed, 2009-04-22 at 11:07 -0700, Rick Altherr wrote: > [snip] > >> This is an interesting idea, but I think it skips an important step. >> There seem to be a number of problems solely within the JTAG and >> interface layers. It would be great if someone constructed so

Re: [Openocd-development] The problem with testing target hardware

2009-04-22 Thread Dick Hollenbeck
Zach Welch wrote: > On Wed, 2009-04-22 at 19:52 +0200, Øyvind Harboe wrote: > >> One annoying problem is that all target hardware is >> not available to all OpenOCD developers. >> >> For development purposes, this could perhaps be >> addressed by creating a JTAG over TCP/IP protocol. >> >> The i

Re: [Openocd-development] The List (of OpenOCD Tasks) for r1509

2009-04-22 Thread Dick Hollenbeck
prove 32/64-bit portability > > ====== > OpenOCD's Active Developers and Testers > -- > > ** - Name - Status - Targets - Interfaces > NC - Nico Coesel - *

Re: [Openocd-development] [PATCH] reorder enum tap_state

2009-04-22 Thread Dick Hollenbeck
Magnus Lundin wrote: > The only reason I can think of for a specic numbering is that it might > optimize the gate design in a hardware implementation of the tap state > engine. But this is not a problem for us so thats OK. If we want to > follow JTAG documentation standards (ARM ane IEEE) in ou

Re: [Openocd-development] Recent JLink churn

2009-04-21 Thread Dick Hollenbeck
You know in the old days source code control systems (SCCS) would require a developer to "check out" a copy of the code, and while it was checked out, nobody else could modify the code. This was before the merge routines were as smart as they are today. There has been a LOT of traffic on thi

Re: [Openocd-development] [PATCH] fix -Wformat-security warnings (1 of 4)

2009-04-21 Thread Dick Hollenbeck
Dick Hollenbeck wrote: > Zach Welch wrote: > >> Hi all, >> >> This patch fixes several warnings caused by -Wformat-security, which >> appears to be the default in Ubuntu

Re: [Openocd-development] [PATCH] fix -Wformat-security warnings (1 of 4)

2009-04-21 Thread Dick Hollenbeck
Zach Welch wrote: > Hi all, > > This patch fixes several warnings caused by -Wformat-security, which > appears to be the default in Ubuntu 8.10. > > Cheers, > > Zach > > The original code looks fine to me. I think you are

Re: [Openocd-development] RFC: tap, ftdi, jlink... what else?

2009-04-20 Thread Dick Hollenbeck
both for a while > - convert drivers that use old API over to the new one > - remove old tap_get_tms_path > - other changes work picking out of Duane's patch-in-progress > > * FT2232 driver: > - fix segfault from long scan chains (observed by Dick Hollenbeck)

Re: [Openocd-development] JTAG/TAP changes?

2009-04-19 Thread Dick Hollenbeck
Zach Welch wrote: > On Sat, 2009-04-18 at 06:31 -0500, Dick Hollenbeck wrote: > >> 1) >> I would like to see tap_set_state() called for ALL state changes, not >> just the end points of of a multi-state path move. This way when >> logging is compiled ON, we can

Re: [Openocd-development] [PATCH] fix ft2232/presto warnings

2009-04-19 Thread Dick Hollenbeck
Zach Welch wrote: > On Sun, 2009-04-19 at 21:25 -0500, Dick Hollenbeck wrote: > >> [snip] >> Why are you changing this argument from the machine's natural size to >> one that is 32 bits wide? >> >> Dick >> > > Fair enough. Here is take

Re: [Openocd-development] sorry have to bail

2009-04-19 Thread Dick Hollenbeck
Duane Ellis wrote: > dick hollenbek> > [duane where are you??? ... snip snip snip] > > zach welch> > [[I am working my way down to debugging this driver, but I have been > waiting for Duane to finish his TAP patches in hope they help.]] > > Some things have come up and I'm not go

Re: [Openocd-development] [PATCH] fix ft2232/presto warnings

2009-04-19 Thread Dick Hollenbeck
Zach Welch wrote: > On Sun, 2009-04-19 at 17:54 -0700, Zach Welch wrote: > >> On Sun, 2009-04-19 at 17:18 -0700, Zach Welch wrote: >> >>> Hi all, >>> >>> Since my patch to enable -Werror got in a little faster than I expected, >>> I decided to try and save myself some pain by installing and

Re: [Openocd-development] JTAG/TAP changes?

2009-04-18 Thread Dick Hollenbeck
Zach Welch wrote: > Hi guys, > > What is the status of the out-of-tree TAP work? Can I talk you into > posting the patches in their current state for review, along with a > description of what is done and the list of tasks still in progress? > > Thanks, > > Zach > I have no modified code yet.

Re: [Openocd-development] [PATCH] CMake scripts

2009-04-17 Thread Dick Hollenbeck
Piotr Esden-Tempski wrote: > Hi! > > On Apr 17, 2009, at 4:52 AM, Dick Hollenbeck wrote: > >> >>>> There still needs to be some >>>> >>>> if(APPLE) >>>> endif(APPLE) >>>> >>>> lines added for static li

Re: [Openocd-development] [PATCH] CMake scripts

2009-04-16 Thread Dick Hollenbeck
>> There still needs to be some >> >> if(APPLE) >> endif(APPLE) >> >> lines added for static libraries on APPLE. >> > > These should be called MACOS_X as Apple is a company, not a product or > OS. You are correct. CMake probably has its own platform define however, that it defines automagicall

[Openocd-development] [PATCH] CMake scripts

2009-04-16 Thread Dick Hollenbeck
/helper/CMakeLists.txt (revision 0) +++ src/helper/CMakeLists.txt (revision 0) @@ -0,0 +1,43 @@ +# Copyright 2009 SoftPLC Corporation http://softplc.com +# Dick Hollenbeck +# License: GPL v2 + + + +add_executable(bin2char bin2char.c) +add_custom_command( +OUTPUT ${CMAKE_CURRENT_BINARY_DIR

Re: [Openocd-development] OpenOCD: CMake could not find LIBFTDI_LIBRARIES

2009-04-16 Thread Dick Hollenbeck
I found some new support for static libraries in CMake 2.6.2 and will test it out shortly Dick ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] OpenOCD: CMake could not find LIBFTDI_LIBRARIES

2009-04-16 Thread Dick Hollenbeck
Michael Fischer wrote: > Hi Dick, > > the LIB problem is a general LIB problem, because the > libusb and libftdi will not be found. > > Your line look like: > > set(CONDITIONAL_LIBS ${LIBFTDI_LIBRARIES} ${CONDITIONAL_LIBS}) > > I know that my libs was installed here: > > /opt/local/libftdi-0.15 > >

Re: [Openocd-development] OpenOCD: CMake could not find LIBFTDI_LIBRARIES

2009-04-16 Thread Dick Hollenbeck
Michael Fischer wrote: > Hello Dick, > > >> Michael, >> >> Do these changes work for you? >> >> >> if(NEED_USB) >> find_package(LibUSB) >> set(CONDITIONAL_LIBS ${CONDITIONAL_LIBS} ${LIBUSB_LIBRARIES}) >> include_directories( ${LIBUSB_INCLUDE_DIR} ) >> endif(NEED_USB) >> >> >> if(BUILD_FT2232_FTD

Re: [Openocd-development] [PATCH] CMake Support

2009-04-16 Thread Dick Hollenbeck
Michael Schwingen wrote: > Dick Hollenbeck wrote: > >> I am not a CMake expert, but this is a decent first draft. I believe >> it will be possible to get to a point where you can build openocd just >> with simple tools on Windows, no need for CYGWIN or even a bash s

Re: [Openocd-development] OpenOCD: CMake could not find LIBFTDI_LIBRARIES

2009-04-16 Thread Dick Hollenbeck
Michael Fischer wrote: > Hello Dick, > > now I understand a little how to use CMake, I could define tht > path with -D. Now I use a build.sh script which look like: > > === > #!/bin/sh > > cmake -DLIBFTDI_LIBRARIES=/opt/local/libft

Re: [Openocd-development] OpenOCD: CMake could not find LIBFTDI_LIBRARIES

2009-04-16 Thread Dick Hollenbeck
Michael, This script looks good. Another way is to use ccmake before running make. ccmake will edit the cmake cache, CMakeCache.txt You can also edit that file with a text editor. Then your 4 paths will be set. And as your other email mentions, we need to add the two include paths to the com

[Openocd-development] [Fwd: OpenOCD: CMake could not find LIBFTDI_LIBRARIES]

2009-04-16 Thread Dick Hollenbeck
Moving a private conversation to the list. --- Begin Message --- Hello Dick, now I understand a little how to use CMake, I could define tht path with -D. Now I use a build.sh script which look like: === #!/bin/sh cmake -DLIBFTD

Re: [Openocd-development] OpenOCD: CMake include dir problem, with solution

2009-04-16 Thread Dick Hollenbeck
Yes Michael, good catch! You are a CMake expert in 10 minutes. The same level of expertise in autotools would take a person 10 days. We need to add the includes, like you suggest. (I missed that in my testing because I had my includes in a standard place.) You can run any CMake built makefi

Re: [Openocd-development] Error reporting in flash modules.

2009-04-14 Thread Dick Hollenbeck
Øyvind Harboe wrote: > There are a couple of problems with C++: > > - there is no consensus to use it for OpenOCD. This will be > *hard* to arrive at since there are a lot of deeply embedded > developers that we need for OpenOCD to succeed. > - there is a lot of messy & nasty C++ libraries. I'd hat

Re: [Openocd-development] Error reporting in flash modules.

2009-04-14 Thread Dick Hollenbeck
Rick Altherr wrote: > > On Apr 14, 2009, at 1:44 PM, Øyvind Harboe wrote: > >>> I'd rather know _why_ something failed rather than having to dig >>> through the >>> code to figure out which layer and why. Not every user is a UNIX >>> programmer >>> with intimate knowledge of the targets, interfa

Re: [Openocd-development] How to configure the build, without using dynamic libraries?

2009-04-14 Thread Dick Hollenbeck
/opt/local/libusb-0.1.12" > LIBS="-lftdi -lusb" gcc conftest.c > > But got the following error: > > Undefined symbols, > "_ftdi_new", referenced from: > _main in ccy6Vq7b.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > &

Re: [Openocd-development] How to configure the build, without using dynamic libraries?

2009-04-14 Thread Dick Hollenbeck
Michael Fischer wrote: > Hello list, > > I am working on a Mac OS X installer for OpenOCD. > If I only install the openocd executable, I got an > error that the dynamic library for libusb and libftdi > can not be found. > Are you saying that you want to use: 1) static libraries for libusb and

  1   2   >