Re: [Openocd-development] jim.c no longer compiles warning free under Cygwin

2009-05-05 Thread Zach Welch
On Wed, 2009-05-06 at 08:17 +0200, Øyvind Harboe wrote: > Looks like more fun with the code below in jim.c... > > #if !defined(HAVE_UNISTD_H) || !defined(__GNU_LIBRARY__) > extern char **environ; > #endif > > > ../../../openocd/src/helper/jim.c: In function `Jim_EnvCoreCommand': > ../../

[Openocd-development] jim.c no longer compiles warning free under Cygwin

2009-05-05 Thread Øyvind Harboe
Looks like more fun with the code below in jim.c... #if !defined(HAVE_UNISTD_H) || !defined(__GNU_LIBRARY__) extern char **environ; #endif ../../../openocd/src/helper/jim.c: In function `Jim_EnvCoreCommand': ../../../openocd/src/helper/jim.c:11988: warning: redundant redeclaration of 'en

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

2009-05-05 Thread Øyvind Harboe
Hi Dick, I'm sorry to hear that things turned out the way they did. I believe that OpenOCD will be worse off without your efforts and you have for sure left some big marks on OpenOCD in terms of quantity and quality. BTW, I'm struggling with applying the patches, I don't know why... could you jus

[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

[Openocd-development] Some new J-Link infos

2009-05-05 Thread Michael Fischer
Hello List, I had problems with the last openocd version, therefore I decide to go back and check some older versions. The problems with the new version was: - could connect to str710, but if I change data with mww only the first time I could display the data with mdw. The second time I got only

[Openocd-development] remove in_check_mask from JTAG API

2009-05-05 Thread Øyvind Harboe
I would like to remove in_check_mask. There are a *few* places in the code where it is used, but those are trivially modified. This will result in lots of code deleted and more easily understandable code. -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zyli

[Openocd-development] Tightening up the jtag_ API

2009-05-05 Thread Øyvind Harboe
I'd like to see the JTAG API tightend up a bit more. in_handler is used in a few dozen places, but really the code would be much clearer if this was handled on the user side rather than inside the JTAG API. Net this would result in a lot of deleted code and easier to read code. I've made some ma

[Openocd-development] Information about BDM

2009-05-05 Thread Øyvind Harboe
I've gotten some information in email about BDM so I can not claim credit for this analysis/research :-) The PowerOPC BDM is not the same as the Coldfire BDM. Some signals have the same name, but that is where the similarities end. The PowerPC relies of instructions serialized into the core (DPI

Re: [Openocd-development] [PATCH] Add minimalist Cortex A8 file

2009-05-05 Thread Dirk Behme
Magnus Lundin wrote: > Good observations, > > - The error reporting and handling for memory read/write errors is > incomplete, this ia general problem, well know but it only occurs when > things are broken anyway. > > - The cortex-a 8 code is incomplete, we know that, you have found the > "

Re: [Openocd-development] [PATCH] Add minimalist Cortex A8 file

2009-05-05 Thread Dirk Behme
Hi Strontium, Strontium wrote: > Ok, > > I am trying to make the files described below. And have gotten along > fine, but have found the following problem. > > The first time my script executes after a reset of the beagle: > > dap apsel 1 > > openocd halts with an error, thus: (at -d 3) >

Re: [Openocd-development] [PATCH] Add minimalist Cortex A8 file

2009-05-05 Thread Magnus Lundin
Good observations, - The error reporting and handling for memory read/write errors is incomplete, this ia general problem, well know but it only occurs when things are broken anyway. - The cortex-a 8 code is incomplete, we know that, you have found the "missing target_examine" function wher

Re: [Openocd-development] [PATCH] Add minimalist Cortex A8 file

2009-05-05 Thread Strontium
Ok, I am trying to make the files described below. And have gotten along fine, but have found the following problem. The first time my script executes after a reset of the beagle: dap apsel 1 openocd halts with an error, thus: (at -d 3) Fails: Debug: 166 1139 arm_adi_v5.c:242 swjdp_trans

[Openocd-development] ARM11 single stepping problems - parport vs. ft2232

2009-05-05 Thread Øyvind Harboe
Single stepping does not work for arm1136 on the parport adapter. Looking at ft2232 vs. bitbang, I see a big difference in how these drivers exist the scan operation. (Hope I got this one right... :-) The bitbang driver manually wiggles it's way to TAP_xRPAUSE, then does a 7 clock transition to t

[Openocd-development] Clean up telnet output a bit

2009-05-05 Thread Øyvind Harboe
Removed extra line added before prompt. This is actually fixing a regression that nobody has reacted to. ### Eclipse Workspace Patch 1.0 #P openocd Index: src/helper/command.c === --- src/helper/command.c(revision 1600) +++ sr

Re: [Openocd-development] How to go on with Cortex-A8 support

2009-05-05 Thread tangray
Hi all, Can't enter debug state as setting cortex-a8 register of DRCR as below ,Any idea? > mww 0x54011090 1 setting DRCR halt request bit > mdw 0x54011088 0x54011088 4b072002. .K reading DSCR,but core still restarted Best Regards, Ray ___

[Openocd-development] target and interface hardware wanted

2009-05-05 Thread Øyvind Harboe
Hi all, we're trying to build up a small farm of target and interface hardware. We're providing access to this farm to some of the OpenOCD developers we talk to when there are issues, e.g. we're looking into ARM11 problems now. In particular we should probably have an ft2232 in our farm. Please

Re: [Openocd-development] Nothing happens with breakpoints

2009-05-05 Thread Michael Schwingen
Jesus Sanchez-Palencia wrote: > When I add a breakpoint I got the "success message" (breakpoint added > at address 0xwhatever) but then I do a "monitor reset halt" and a > "monitor resume". At this point I expected that I would stop at some > breakpoint and then I could start stepping. I've adde