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

2009-05-06 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

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

2009-05-06 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':

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

2009-05-06 Thread Zach Welch
On Tue, 2009-05-05 at 23:27 -0700, Zach Welch wrote: 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-development] JTAG API cleanup

2009-05-06 Thread Øyvind Harboe
Committed. in_handler is deprecated. Removing the remaining uses will take some time, but the most significant benefit of not having to setting all those deprecated fields to NULL can be had immediately. -- Øyvind Harboe Embedded software and hardware consulting services

[Openocd-development] Retire out_mask in JTAG API

2009-05-06 Thread Laurent Gauch
Do not submit this patch. Do not modify / retire any parameter from JTAG API scan functions. Yes, field.out_mask is not used for ARM Debug, but could be very important for pure boundary scan test ! Please do not touch the JTAG API at all ! Regards, Laurent Gauch http://www.amontec.com

[Openocd-development] JTAG API cleanup

2009-05-06 Thread Laurent Gauch
Please remove it. In_handler could be very useful when we will add pure JTAG Boundary Scan support in OpenOCD. Please do not touch the JTAG API at all ! Regards, Laurent Gauch http://www.amontec.com http://www.amontec.com/jtagkey.shtml Committed. in_handler is deprecated. Removing

Re: [Openocd-development] Retire out_mask in JTAG API

2009-05-06 Thread Øyvind Harboe
Yes, field.out_mask is not used for ARM Debug, but could be very important for pure boundary scan test ! This can be done from the calling code and it will be much clearer what's going on. -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com

[Openocd-development] remove in_check_mask from JTAG API

2009-05-06 Thread Laurent Gauch
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 in_check_mask is nice feature since we could check only one (or some) bit in a scan

Re: [Openocd-development] Retire out_mask in JTAG API

2009-05-06 Thread Laurent Gauch
Yes it could. But giving this out_mask info to the low layer JTAG API can really help to accelerate the JTAG interface itself and accelerating the OpenOCD by the way. Same for in_check_mask and other _mask parameters. The best you can do is to write new smaller functions calling the actual

Re: [Openocd-development] Retire out_mask in JTAG API

2009-05-06 Thread Øyvind Harboe
On Wed, May 6, 2009 at 11:10 AM, Laurent Gauch laurent.ga...@amontec.com wrote: Yes it could. But giving this out_mask info to the low layer JTAG API can really help to accelerate the JTAG interface itself and accelerating the OpenOCD by the way. This is an extraordinary claim that I do not

Re: [Openocd-development] Retire out_mask in JTAG API

2009-05-06 Thread Øyvind Harboe
On Wed, May 6, 2009 at 11:50 AM, Laurent Gauch laurent.ga...@amontec.com wrote: Ųyvind Harboe wrote: On Wed, May 6, 2009 at 11:10 AM, Laurent Gauch laurent.ga...@amontec.com wrote: Yes it could. But giving this out_mask info to the low layer JTAG API can really help to accelerate the JTAG

Re: [Openocd-development] Retire out_mask in JTAG API

2009-05-06 Thread Magnus Lundin
It think we should keep them (for now). They do not cause any problems, a helper to fill in defaults is very simple to write. But it would be interesting to see some example of how they should be used to accelerate the JTAG Layer Interface. Please lets us work on more important stuff, 7 step

Re: [Openocd-development] Retire out_mask in JTAG API

2009-05-06 Thread Øyvind Harboe
On Wed, May 6, 2009 at 12:06 PM, Magnus Lundin lun...@mlu.mine.nu wrote: It think we should keep them (for now). They do not cause any problems, a helper to fill in defaults is very simple to write. The helper function is there already. We can introduce any number of new fields to that

Re: [Openocd-development] problems with Amontec JTAGKey on linux

2009-05-06 Thread Vytautas Lukenskas
On Wednesday 29 April 2009 14:35:24 Vytautas Lukenskas wrote: I have problems connecting with Amontec JTAGKey to LuminaryMicro boards (IDM-L35, LM3S8962) from linux. I get about 1 successfull connection from ~10 attempts. When connection succeeded, I can flash target, restart, debug it without

Re: [Openocd-development] Retire out_mask in JTAG API

2009-05-06 Thread Laurent Gauch
Øyvind Harboe wrote: These fields are not gone as such. We can have any number of them that we want by modifying the helper functions. Lets start with profiling and analysis of OpenOCD and we'll add those features to the driver API that we need without complicating the calling code. I

Re: [Openocd-development] Debian package: build errors on various architectures

2009-05-06 Thread Uwe Hermann
Hi, On Mon, May 04, 2009 at 11:56:00AM -0700, Zach Welch wrote: The attached patch should fix the cast alignment warnings caused by jim.c on platforms with stricter alignment rules. If you get more problems, please run the builds with --disable-werror so I can try to fix all of them in one

Re: [Openocd-development] ARM register context structure

2009-05-06 Thread Jesus Sanchez-Palencia
Well, I noticed that you do have some context handling functions and that they just use a context[16] to save the values of r0 ~r15. We still have cspr and spsr... Isn't there any ARM reg struct in the whole OpenOCD code to save this reg context? thanks, jesus 2009/5/4 Jesus

[Openocd-development] arm11 testing hardware

2009-05-06 Thread Øyvind Harboe
Does anyone have any arm11 testing hardware they could donate? If so, email me. We're setting up a target farm for testing OpenOCD developer access. Thanks! -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com

Re: [Openocd-development] Nothing happens with breakpoints

2009-05-06 Thread Jesus Sanchez-Palencia
Do you mean monitor go or monitor continue ? I mean, at this point I'm not sure if I really need to do everything with the monitor commands... I did what said monitor reset halt monitor bp monitor resume... nothing. I can never reach a breakpoint. What's going on ?! thanks, Jesus 2009/5/5

Re: [Openocd-development] How to enter into debug state of Cortex-A8‏?

2009-05-06 Thread Dirk Behme
Magnus Lundin wrote: tangray wrote: Hi all, I could not enter debug state when I set DRCR[0] to b1, And I get the DSCR[1:0] value is b10 any idea? DRCR:Debug Run Control Register DSCR:Debug Status and Control Register these registers is on page 12.4.12 of Cortex-A8 TRM The

[Openocd-development] Update JLink driver

2009-05-06 Thread Magnus Lundin
Added code for new jtag sequence in JLink driver Tested on LPC2148 and STM32 with both old and new table. Small changes that might improve stabilitybut it is still unclear why it sometimes works and sometimes not. Regards Magnus ___

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

2009-05-06 Thread Magnus Lundin
Added (BUILD_JLINK==1) condition to us new tables with JLink Regards Magnus ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development

Re: [Openocd-development] How to enter into debug state of Cortex-A8‏?

2009-05-06 Thread Magnus Lundin
Dirk Behme wrote: Magnus Lundin wrote: tangray wrote: Hi all, I could not enter debug state when I set DRCR[0] to b1, And I get the DSCR[1:0] value is b10 any idea? DRCR:Debug Run Control Register DSCR:Debug Status and Control Register these registers is on page 12.4.12 of

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

2009-05-06 Thread Michael Schwingen
Magnus Lundin wrote: Added (BUILD_JLINK==1) condition to us new tables with JLink I usually build with both FT2232 and parport enabled (and use both) - how is that supposed to work with the patch? If I understood the patch correct, this can only work if both drivers are converted and

Re: [Openocd-development] Retire out_mask in JTAG API

2009-05-06 Thread Duane Ellis
Oyvind [removed some non-used api features of the JTAG field structures] Laurent [please put them back, they are important] Laurent, You are the only one who wants this to remain. Your request to keep these items sound like a idea that somebody _thought_ was important, but it turned out

Re: [Openocd-development] Debian package: build errors on various architectures

2009-05-06 Thread Zach Welch
On Wed, 2009-05-06 at 15:50 +0200, Uwe Hermann wrote: Hi, On Mon, May 04, 2009 at 11:56:00AM -0700, Zach Welch wrote: The attached patch should fix the cast alignment warnings caused by jim.c on platforms with stricter alignment rules. If you get more problems, please run the builds

Re: [Openocd-development] Debian package: build errors on various architectures

2009-05-06 Thread Zach Welch
On Wed, 2009-05-06 at 16:24 -0700, Zach Welch wrote: On Wed, 2009-05-06 at 15:50 +0200, Uwe Hermann wrote: Hi, On Mon, May 04, 2009 at 11:56:00AM -0700, Zach Welch wrote: The attached patch should fix the cast alignment warnings caused by jim.c on platforms with stricter alignment