Re: [Openocd-development] MIPS EJTAG ROM monitor or HALT mode debugging

2011-01-07 Thread Drasko DRASKOVIC
Hi all, reading more MIPS documentation I came to certain assumptions how JTAG debugging works with these cores (EJTAG), so I'll try to answer myself for the future reference, but also as a possible motivation for someone to comment on these : On Fri, Jan 7, 2011 at 4:06 PM, Drasko DRASKOVIC wrot

Re: [Openocd-development] [PATCH] lpc21xx: common target script

2011-01-07 Thread Øyvind Harboe
> What do you think about this idea? A step in the right direction, definitely! I'm glad to see this process moving forward. We'll have more good ideas for sure. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www

Re: [Openocd-development] [PATCH] lpc21xx: common target script

2011-01-07 Thread Michael Schwingen
Am 01/07/2011 05:43 PM, schrieb Freddie Chopin: > On 2011-01-07 17:22, Freddie Chopin wrote: >> I've come up with an improvement of the idea - I'll present the patch >> tomorrow. This will make it easier to create custom versions of specific >> targets (; > > Here is an example of lpc2103.cfg with

Re: [Openocd-development] LPC2xxx scripts

2011-01-07 Thread Michael Schwingen
Am 01/07/2011 05:44 PM, schrieb Øyvind Harboe: > On Fri, Jan 7, 2011 at 5:38 PM, Michael Schwingen > wrote: >> Am 01/07/2011 05:18 PM, schrieb Øyvind Harboe: >>> The construct below has a comment to explain >>> what the following statement means => duplication. >>> >>> How about using named parame

Re: [Openocd-development] LPC2xxx scripts

2011-01-07 Thread Øyvind Harboe
On Fri, Jan 7, 2011 at 5:38 PM, Michael Schwingen wrote: > Am 01/07/2011 05:18 PM, schrieb Øyvind Harboe: >> The construct below has a comment to explain >> what the following statement means => duplication. >> >> How about using named parameters instead? >> >> I think named parameters might even

Re: [Openocd-development] [PATCH] lpc21xx: common target script

2011-01-07 Thread Freddie Chopin
On 2011-01-07 17:22, Freddie Chopin wrote: I've come up with an improvement of the idea - I'll present the patch tomorrow. This will make it easier to create custom versions of specific targets (; Here is an example of lpc2103.cfg with this change (draft [; ): # NXP LPC2103 ARM7TDMI-S with 32

Re: [Openocd-development] LPC2xxx scripts

2011-01-07 Thread Michael Schwingen
Am 01/07/2011 05:18 PM, schrieb Øyvind Harboe: > The construct below has a comment to explain > what the following statement means => duplication. > > How about using named parameters instead? > > I think named parameters might even have a concept > of default values in Tcl, but offhand I don't kno

Re: [Openocd-development] [PATCH] lpc21xx: common target script

2011-01-07 Thread Øyvind Harboe
On Fri, Jan 7, 2011 at 5:22 PM, Freddie Chopin wrote: > On 2011-01-07 17:11, Øyvind Harboe wrote: >> >> Hopefully we can make some progress towards >> simplifying the scripts going forward... > > I've come up with an improvement of the idea - I'll present the patch > tomorrow. This will make it ea

Re: [Openocd-development] LPC2xxx scripts

2011-01-07 Thread Øyvind Harboe
On Fri, Jan 7, 2011 at 5:25 PM, Freddie Chopin wrote: > On 2011-01-07 17:18, Øyvind Harboe wrote: >> >> How about using named parameters instead? > > Is that possible? How would that be done? This could be very nice, as now > the comment with explanation is necessary. The same is true for "flash b

Re: [Openocd-development] LPC2xxx scripts

2011-01-07 Thread Freddie Chopin
On 2011-01-07 17:18, Øyvind Harboe wrote: How about using named parameters instead? Is that possible? How would that be done? This could be very nice, as now the comment with explanation is necessary. The same is true for "flash bank" command. There is one "con" of such idea - the call to se

Re: [Openocd-development] [PATCH] lpc21xx: common target script

2011-01-07 Thread Freddie Chopin
On 2011-01-07 17:11, Øyvind Harboe wrote: Hopefully we can make some progress towards simplifying the scripts going forward... I've come up with an improvement of the idea - I'll present the patch tomorrow. This will make it easier to create custom versions of specific targets (; Would you

[Openocd-development] LPC2xxx scripts

2011-01-07 Thread Øyvind Harboe
The construct below has a comment to explain what the following statement means => duplication. How about using named parameters instead? I think named parameters might even have a concept of default values in Tcl, but offhand I don't know the syntax or construct. So something like: setup_lpc21

Re: [Openocd-development] [PATCH] lpc21xx: common target script

2011-01-07 Thread Øyvind Harboe
Merged. Thanks! Hopefully we can make some progress towards simplifying the scripts going forward... Would you mind having a crack at the other LPC series scripts? -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http:/

[Openocd-development] MIPS EJTAG ROM monitor or HALT mode debugging

2011-01-07 Thread Drasko DRASKOVIC
HI all, I have a simple question for anyone worked with MIPS (EJTAG) before - does it support "halt" mode debugging, or ROM monitor mode is only option ? Coming from the ARM world, I am looking for "halt" mode debugging, as I am very limited on chip surface to add additional ROM. 1) I read in one