Re: [Openocd-development] Jim TCL

2008-07-14 Thread Øyvind Harboe
On Mon, Jul 14, 2008 at 11:18 PM, Jonathan Larmour <[EMAIL PROTECTED]> wrote: > Øyvind Harboe wrote: That's not true for OpenOCD. >>> >>> So what's the best way to proceed here? >>> >>> Make Jim Tcl + LGPL? > > I didn't think you were able to change the licence of Jim or OpenOCD, as you >

Re: [Openocd-development] array names & jim-tcl.

2008-07-14 Thread Øyvind Harboe
On Tue, Jul 15, 2008 at 3:03 AM, Duane Ellis <[EMAIL PROTECTED]> wrote: > Oyvind, > > Earlier I said that we needed some support for the "array" feature in > Jim TCL. > Actually - we do not, we have enough there now - by other means! > > It can be accomplished as follows: > > > set foo(me) Duane

[Openocd-development] array names & jim-tcl.

2008-07-14 Thread Duane Ellis
Oyvind, Earlier I said that we needed some support for the "array" feature in Jim TCL. Actually - we do not, we have enough there now - by other means! It can be accomplished as follows: > set foo(me) Duane > set foo(you) Oyvind > set foo(mouse) Micky > set foo(duck) Donald If one doe

Re: [Openocd-development] Tcl low level API callbacks

2008-07-14 Thread Duane Ellis
Ville Voipio wrote: Oyvind> Here of course there would have to be something like a "keep-alive" progress messages minimally. ville> But would they then be sent in the same communication channel? Becausethat would then break the beautifully simple architecture; one remote call results in one re

Re: [Openocd-development] Jim TCL

2008-07-14 Thread Jonathan Larmour
Øyvind Harboe wrote: >>>That's not true for OpenOCD. >> >>So what's the best way to proceed here? >> >>Make Jim Tcl + LGPL? I didn't think you were able to change the licence of Jim or OpenOCD, as you would need the permission of all copyright holders. The only route I can see is to take advanta

Re: [Openocd-development] stm32 - cortex -problems

2008-07-14 Thread Spen
> > #2 has stm32f103zet6 22089vc mlt 3r816 > 512k flash part. > (I include the added info - because it is probably a date > code and that might matter here) > > Dumping memory @ 0x17e0 gives: > > > mdw 0x17e0 16 > 0x17e0: fff

Re: [Openocd-development] Jim TCL

2008-07-14 Thread Øyvind Harboe
>> That's not true for OpenOCD. > > So what's the best way to proceed here? > > Make Jim Tcl + LGPL? Also, we don't need to link Jim Tcl into OpenOCD, but it's less hazzle. There are many ways forward. Including ditching Jim Tcl. The scripting work that is being done with Jim Tcl specifically ap

Re: [Openocd-development] Jim TCL

2008-07-14 Thread Øyvind Harboe
> The issue is not the same with eCos and OpenOCD unfortunately. eCos is in a > better situation because eCos does not have a vanilla GPL, but has a > special exception clause which means that stuff linked with it does not > also have to be GPL'd. OpenOCD does not have that. > > So people using Jim

Re: [Openocd-development] Jim TCL

2008-07-14 Thread Jonathan Larmour
Øyvind Harboe wrote: > >> - Jim is licensed under Apache license V2, which is listed as being >> incompatible with GPLv2 on the FSF page. Large parts of the OpenOCD are >> licensed under the terms of GPLv2 or later. > > jifl on ecos-discuss is looking into this, so it will get sorted > one way or

Re: [Openocd-development] Jim TCL

2008-07-14 Thread Dominic Rath
On Monday 14 July 2008 19:34:06 you wrote: > This is work in progress. Development happens on trunk and we'll > have to cut stable branches if need be. > > There is a great need to synchronize work because many people are > involved. Both "scripting" people and C people. > > Once the dust settles(g

Re: [Openocd-development] Tcl low level API callbacks

2008-07-14 Thread Øyvind Harboe
On Mon, Jul 14, 2008 at 5:25 PM, Ville Voipio <[EMAIL PROTECTED]> wrote: > Øyvind Harboe wrote: >> On Mon, Jul 14, 2008 at 3:58 PM, Ville Voipio <[EMAIL PROTECTED]> wrote: I'd rather make it the responsibility of the client to implement support for this. This can be done via multithr

Re: [Openocd-development] Jim TCL

2008-07-14 Thread Øyvind Harboe
This is work in progress. Development happens on trunk and we'll have to cut stable branches if need be. There is a great need to synchronize work because many people are involved. Both "scripting" people and C people. Once the dust settles(give it a month or two), the concerns you raised should

Re: [Openocd-development] Jim TCL

2008-07-14 Thread Charles Hardin
The majority of these issues can be addressed by refactoring and simple code cleanup, but the one that cannot be resolved without a rewrite of jim is going to be the License. So, unfortunately - I do not want to start a flame war about Licenses - but, can the authors come to agreement on what they

[Openocd-development] Jim TCL

2008-07-14 Thread Dominic Rath
Hi List, unfortunately I don't have nearly enough time to follow all the changes going on in the OpenOCD SVN repository, but I'd like to make some comments here: - Some people have raised concerns about the direction of OpenOCD development. The use of TCL for integral parts of the OpenOCD seems

Re: [Openocd-development] [EMAIL PROTECTED]: Bug#489785: please addsample config file for cortex M3 target]

2008-07-14 Thread Uwe Hermann
On Wed, Jul 09, 2008 at 12:49:50PM +0100, Spen wrote: > > Could you clean it up a bit & exclude interface specific stuff? > > > > LM3S8962 does not match LM3S811... I don't know what that means. > > > > The problem is more related to ftdi drivers > ftdi own drivers require > ft2232_device_desc "

Re: [Openocd-development] Tcl low level API callbacks

2008-07-14 Thread Ville Voipio
Øyvind Harboe wrote: > On Mon, Jul 14, 2008 at 3:58 PM, Ville Voipio <[EMAIL PROTECTED]> wrote: >>> I'd rather make it the responsibility of the client to implement support >>> for >>> this. This can be done via multithreading or using a post + check for >>> reply concept. >> The question is if the

Re: [Openocd-development] Tcl low level API callbacks

2008-07-14 Thread Øyvind Harboe
> I think it is important that all commands return very soon (from the human > point of view). If a command takes long (such as a large memory read/write), > it should not block, as that makes HMI design more difficult. It is much > easier to poll than to create a number of threads and to wait for

Re: [Openocd-development] Tcl low level API callbacks

2008-07-14 Thread Ville Voipio
Duane Ellis wrote: > Øyvind> whether the low level tcl API's should take a call back proc. > > ville> Callback to what and how? How do you call back to a script? > > Øyvind> In terms of implementing(don't know of a case where we need them > yet) > > I am confused - can you give me a better exam

Re: [Openocd-development] Tcl low level API callbacks

2008-07-14 Thread Øyvind Harboe
On Mon, Jul 14, 2008 at 12:46 PM, Duane Ellis <[EMAIL PROTECTED]> wrote: > Øyvind> whether the low level tcl API's should take a call back proc. > > ville> Callback to what and how? How do you call back to a script? > > Øyvind> In terms of implementing(don't know of a case where we need them > yet)

Re: [Openocd-development] [PATCH] objcopy prefixes with '_' on linux

2008-07-14 Thread Jonathan Larmour
Charles Hardin wrote: > Ok, so what is the preferred solution? > > 1. stick with objcopy and do the #ifdef > 2. stick with objcopy and do an external script to rename the symbols > 3. go back to making a startup.c - maybe use a bin2hex c program > instead of tclsh > > I don't like 1 since there a

Re: [Openocd-development] Tcl low level API callbacks

2008-07-14 Thread Duane Ellis
Øyvind> whether the low level tcl API's should take a call back proc. ville> Callback to what and how? How do you call back to a script? Øyvind> In terms of implementing(don't know of a case where we need them yet) I am confused - can you give me a better example of where something like this i

Re: [Openocd-development] Tcl low level API rules

2008-07-14 Thread Øyvind Harboe
On Mon, Jul 14, 2008 at 12:38 PM, Duane Ellis <[EMAIL PROTECTED]> wrote: > Øyvind Harboe wrote: >> >> Currently there is state stored in the command context. I'd like >> the low level API not to use that state. >> > > And - state is stored in multiple globals - as you put it - the "flash > banks" o

Re: [Openocd-development] Tcl low level API rules

2008-07-14 Thread Duane Ellis
Øyvind Harboe wrote: > Currently there is state stored in the command context. I'd like > the low level API not to use that state. > And - state is stored in multiple globals - as you put it - the "flash banks" of the current target. Is there something inside the "jim interp" - a void pointer

Re: [Openocd-development] Tcl low level API callbacks

2008-07-14 Thread Øyvind Harboe
On Mon, Jul 14, 2008 at 12:05 PM, Ville Voipio <[EMAIL PROTECTED]> wrote: > > The nasty remaining problem is LOG_XXX() and command_print. I was > wondering >> >> whether the low level tcl API's should take a call back proc. >> >> Probably should according to my reasoning. > > Callback to what and

[Openocd-development] Tcl low level API callbacks

2008-07-14 Thread Ville Voipio
> The nasty remaining problem is LOG_XXX() and command_print. I was wondering > whether the low level tcl API's should take a call back proc. > > Probably should according to my reasoning. Callback to what and how? How do you call back to a script? As I see it, the problem here is that we ha

Re: [Openocd-development] Tcl low level API rules

2008-07-14 Thread Øyvind Harboe
> However, are there any low-level commands which would require several pieces > of information from cmd_ctx? The nasty remaining problem is LOG_XXX() and command_print. I was wondering whether the low level tcl API's should take a call back proc. Probably should according to my reasoning. --

Re: [Openocd-development] Tcl low level API rules

2008-07-14 Thread Ville Voipio
Øyvind Harboe wrote: > Currently there is state stored in the command context. I'd like > the low level API not to use that state. > > I.e. "flash_banks" currently takes the currently active target > from cmd_ctx, rather than taking it as an input argument. I agree that having some invisible stat

[Openocd-development] Tcl low level API rules

2008-07-14 Thread Øyvind Harboe
Currently there is state stored in the command context. I'd like the low level API not to use that state. I.e. "flash_banks" currently takes the currently active target from cmd_ctx, rather than taking it as an input argument. Ideally, I'd like to see the low level tcl commands not rely on cmd_ct