[OpenOCD-devel] gdb-attach events

2012-03-19 Thread Chris Morgan
Hello. Recently, when submitting a patch for a board file, the issue of a gdb-attach event procedure (if I'm using the correct tcl term) came up. Several board files have gdb-attach entries: at91rm9200-dk.cfg:$_TARGETNAME configure -event gdb-attach { reset init } at91rm9200-ek.cfg:$_TARGETNAME

Re: [OpenOCD-devel] Change review

2012-03-14 Thread Chris Morgan
Oh ok. I'm not in any rush, just saw a relatively high patch load coming through and didn't want to get missed and dropped. Chris On Wed, Mar 14, 2012 at 10:34 AM, Øyvind Harboe wrote: > Hi Chris, > > Spencer reviewed it already and it looked good to him. > > Minimally we want to let patches s

[OpenOCD-devel] Change review

2012-03-14 Thread Chris Morgan
Hello. Is there something special I should be doing to get a patch reviewed? I fixed an issue that I discussed in detail with Freddie last month and pushed the patch to Gerrit but its been sitting on there for a few days now with only a single person that reviewed it. Would hate to have it get sta

Re: [OpenOCD-devel] LPC config files don't export _TARGETNAME?

2012-02-03 Thread Chris Morgan
On Fri, Feb 3, 2012 at 2:51 PM, Freddie Chopin wrote: > W dniu 2012-02-03 15:59, Chris Morgan pisze: > >> Need me to do anything here Freddie? I modified my review on your >> patch presuming that we would address the board issues in another way. > > > I've posted

Re: [OpenOCD-devel] LPC config files don't export _TARGETNAME?

2012-02-03 Thread Chris Morgan
On Thu, Feb 2, 2012 at 4:50 PM, Chris Morgan wrote: > On Thu, Feb 2, 2012 at 4:34 PM, Freddie Chopin wrote: >> W dniu 2012-02-02 22:11, Chris Morgan pisze: >> >>> How does it look in tcl to override the init_targets from the >>> lpc2478.cpu file in code

Re: [OpenOCD-devel] LPC config files don't export _TARGETNAME?

2012-02-02 Thread Chris Morgan
On Thu, Feb 2, 2012 at 4:34 PM, Freddie Chopin wrote: > W dniu 2012-02-02 22:11, Chris Morgan pisze: > >> How does it look in tcl to override the init_targets from the >> lpc2478.cpu file in code? > > > You just write another init_targets() and it overrides the previo

Re: [OpenOCD-devel] LPC config files don't export _TARGETNAME?

2012-02-02 Thread Chris Morgan
On Thu, Feb 2, 2012 at 4:06 PM, Freddie Chopin wrote: > W dniu 2012-02-02 21:24, Chris Morgan pisze: > >> Is the idea to allow some kind of function chaining? I guess I'm not >> understanding what the principle use of init_targets() was that makes >> it better than si

Re: [OpenOCD-devel] LPC config files don't export _TARGETNAME?

2012-02-02 Thread Chris Morgan
On Thu, Feb 2, 2012 at 3:17 PM, Freddie Chopin wrote: > W dniu 2012-02-02 20:54, Øyvind Harboe pisze: >> On Thu, Feb 2, 2012 at 7:48 PM, Chris Morgan  wrote: >>> Hi Oyvind. >>> >>> Would you be able to provide some guidance on how to resolve the >>> is

Re: [OpenOCD-devel] LPC config files don't export _TARGETNAME?

2012-02-02 Thread Chris Morgan
Hi Oyvind. Would you be able to provide some guidance on how to resolve the issues with the lpc2478.cpu and others that are setting TARGETNAME from the init_target path and board files like the ea board file that use TARGETNAME when sourced and before the init code is called? Chris On Feb 2, 20

Re: [OpenOCD-devel] LPC config files don't export _TARGETNAME?

2012-02-02 Thread Chris Morgan
On Thu, Feb 2, 2012 at 12:15 PM, Freddie Chopin wrote: > W dniu 2012-02-02 18:09, Chris Morgan pisze: > >> Do you know who came up with the init_target idea? That's the person >> that would probably best help decide what to do. > > > Ųyvind? I don't remember,

Re: [OpenOCD-devel] LPC config files don't export _TARGETNAME?

2012-02-02 Thread Chris Morgan
On Thu, Feb 2, 2012 at 11:30 AM, Freddie Chopin wrote: > W dniu 2012-02-02 01:25, Chris Morgan pisze: > >> Saw your patch. I tried the same thing here but it doesn't work for >> the embedded artists target, the board I have here for testing >> openocd. >> >&g

Re: [OpenOCD-devel] LPC config files don't export _TARGETNAME?

2012-02-01 Thread Chris Morgan
Hi. Saw your patch. I tried the same thing here but it doesn't work for the embedded artists target, the board I have here for testing openocd. The ea target includes the lpc2478.cpu file and then starts using _TARGETNAME. As I mentioned in my original email, because init hasn't been called yet t

Re: [OpenOCD-devel] LPC config files don't export _TARGETNAME?

2012-02-01 Thread Chris Morgan
On Feb 1, 2012, at 7:02 AM, Peter Stuge wrote: > John Devereux wrote: Of course any users board script will be broken too, >>> >>> Can you send a patch to gerrit with your board cfg? I'd be happy to >>> add it. >> >> I don't think our config would be of a lot of general use. > > That's not a

Re: [OpenOCD-devel] LPC config files don't export _TARGETNAME?

2012-01-31 Thread Chris Morgan
Just signed up for this list as I'm a new openocd user and I saw this email thread. Ubuntu 11.10 with openocd 0.5.0. I think I'm seeing the same issue but it seems like a bit of a catch 22 case that I can't figure out. My openocd.cfg is simple and uses only existing scripts: # jlink is well s