Re: [Openocd-development] TCL and incomplete commands

2008-07-20 Thread Duane Ellis
Dominic> I just tried the current SVN head a bit, and quickly realized that incomplete commands didn't work anymore. Dominic> [example: shut for 'shutdown'] Oyvind> This *can* be added back, but I'm not sure it's a good idea with scripting. Yea, I would have to agree. It is not a good idea.

[Openocd-development] Odd openocd & DDD behavior.

2008-07-20 Thread Duane Ellis
In my environment: Linux machine -development host. Located in my basement. Desktop: WinXP with X11 remote session to Linux machine. OpenOCD runs on the WinXP machine. DDD & 'code-sourcery-gdb' runs on linux machine in basement. The display is 'remote' to my desktop in my 2nd

Re: [Openocd-development] More TCL functions - for stm32 (like at91)

2008-07-20 Thread Duane Ellis
Øyvind Harboe wrote: Committed. But: the cortex_m3.tcl is missing. Committed the others. Please submit a patch against trunk. Doesn't your tool allow creating patches that adds/deletes/moves files? OOPS -- Sorry. I also found a typo in another file. I've been using "svn diff" - it does not

[Openocd-development] Reset Madness

2008-07-20 Thread Duane Ellis
Putting my "user hat" on - I think we sort of went down the wrong path with reset. My reasoning and solution ideas follows. -Duane. Background: Openocd is "part of a debugger" - it is not a board or program that runs freely. When something is under the control of a debugger - i

[Openocd-development] [PATCH] Support for non-CFI flash MX29LV800B

2008-07-20 Thread Michael Kurz
Hi all, This patch adds support for a MX29LV800B non-cfi flash. -- Michael GPGKey Id: 0xC7DFF50D mx29lv800b_noncfi.patch Description: Binary data ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mail

Re: [Openocd-development] Reset cleanup

2008-07-20 Thread Tim Hudson
Øyvind Harboe wrote: > I need to test these changes. > Comments welcome! -jtag_khz 10, 3000 + +jtag_khz 3000 +proc target_0_pre_reset {} { + jtag_khz 10 +} +proc target_0_post_reset {} { + jtag_khz 3000 +} + Now this one I really don't understand in terms of what are the benefits of

[Openocd-development] Reset cleanup

2008-07-20 Thread Øyvind Harboe
I need to test these changes. Comments welcome! - jtag_khz/speed are now single parameter only. These are used from pre/post_reset event scripts. Adding the second parameter was a mistake seen in retrospect. this gives precise control in post_reset for *when* the post reset speed is set. The pre

Re: [Openocd-development] Demystifying reset a bit

2008-07-20 Thread Øyvind Harboe
On Sun, Jul 20, 2008 at 8:44 PM, Spen <[EMAIL PROTECTED]> wrote: >> The input I've seen is that multiple devices in a chain, only >> one of which is an ARM CPU can make any fixed scheme for reset fail. >> >> Rather I'm thinking that a reset procedure needs to be >> written in script form to handle

Re: [Openocd-development] Demystifying reset a bit

2008-07-20 Thread Spen
> The input I've seen is that multiple devices in a chain, only > one of which is an ARM CPU can make any fixed scheme for reset fail. > > Rather I'm thinking that a reset procedure needs to be > written in script form to handle the more contrived cases. > Why cannot the advanced user/setup ha

Re: [Openocd-development] keep_alive()

2008-07-20 Thread Øyvind Harboe
On Sun, Jul 20, 2008 at 8:24 PM, Dominic Rath <[EMAIL PROTECTED]> wrote: > On Sunday 20 July 2008 20:15:38 you wrote: >> On Sun, Jul 20, 2008 at 7:51 PM, Dominic Rath <[EMAIL PROTECTED]> wrote: >> > Hi list, >> > >> > while working with the OpenOCD's telnet interface for a bit I got several >> > of

Re: [Openocd-development] keep_alive()

2008-07-20 Thread Dominic Rath
On Sunday 20 July 2008 20:15:38 you wrote: > On Sun, Jul 20, 2008 at 7:51 PM, Dominic Rath <[EMAIL PROTECTED]> wrote: > > Hi list, > > > > while working with the OpenOCD's telnet interface for a bit I got several > > of these messages: > > > > keep_alive() was not invoked in the 1000ms timelimit. G

Re: [Openocd-development] keep_alive()

2008-07-20 Thread Øyvind Harboe
On Sun, Jul 20, 2008 at 7:51 PM, Dominic Rath <[EMAIL PROTECTED]> wrote: > Hi list, > > while working with the OpenOCD's telnet interface for a bit I got several of > these messages: > > keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not > sent! (1258) > > I had the jtag_spe

Re: [Openocd-development] TCL and incomplete commands

2008-07-20 Thread Øyvind Harboe
On Sun, Jul 20, 2008 at 7:45 PM, Dominic Rath <[EMAIL PROTECTED]> wrote: > Hi list, and especially the TCL gurus, > > I just tried the current SVN head a bit, and quickly realized that incomplete > commands didn't work anymore. > > I remember reading something about this in one of the recent mails,

Re: [Openocd-development] Demystifying reset a bit

2008-07-20 Thread Øyvind Harboe
> Some points to consider: > > - from the (knowing) user's point of view, there is a difference between a > failed reset+halt and a reset+run&halt, especially when a target is supposed > to support reset+halt. At a minimum the user needs to be informed about a > failed reset+halt. The idea is inde

[Openocd-development] keep_alive()

2008-07-20 Thread Dominic Rath
Hi list, while working with the OpenOCD's telnet interface for a bit I got several of these messages: keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (1258) I had the jtag_speed set to a very high value (1400), because the target is an ARM926EJ-S core running

[Openocd-development] TCL and incomplete commands

2008-07-20 Thread Dominic Rath
Hi list, and especially the TCL gurus, I just tried the current SVN head a bit, and quickly realized that incomplete commands didn't work anymore. I remember reading something about this in one of the recent mails, but can't find it right now. Is that functionality only temporarily gone, or is

Re: [Openocd-development] Demystifying reset a bit

2008-07-20 Thread Dominic Rath
On Sunday 20 July 2008 19:25:07 Øyvind Harboe wrote: > I've got some thoughts on defining a crisper interface between the > target_process_reset() and the target. > > - the idea is to let the target be ignorant of reset modes. Reset > modesrun, init, > halt, run_and_init, etc. is something that is

Re: [Openocd-development] [PATCH] OCD naming compulsion... grrrr

2008-07-20 Thread Øyvind Harboe
Committed. Thanks! -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/open

Re: [Openocd-development] reset

2008-07-20 Thread Øyvind Harboe
On Sat, Jul 19, 2008 at 2:47 PM, Spen <[EMAIL PROTECTED]> wrote: >> I don't know the precise details, but an overrideable proc >> comes to mind. >> >> Is that what you are thinking? >> > > Not at all, to me this is standard behaviour that a user wants. > i would sooner have a gdb_reset config optio

[Openocd-development] Demystifying reset a bit

2008-07-20 Thread Øyvind Harboe
I've got some thoughts on defining a crisper interface between the target_process_reset() and the target. - the idea is to let the target be ignorant of reset modes. Reset modesrun, init, halt, run_and_init, etc. is something that is built on top of the target reset support. - a target is told to

Re: [Openocd-development] More TCL functions - for stm32 (like at91)

2008-07-20 Thread Øyvind Harboe
Committed. But: the cortex_m3.tcl is missing. Committed the others. Please submit a patch against trunk. Doesn't your tool allow creating patches that adds/deletes/moves files? -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer _

Re: [Openocd-development] [PATCH] Add support for non-CFI flash A29L800A

2008-07-20 Thread Øyvind Harboe
Committed. Thanks! -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openoc

Re: [Openocd-development] [PATCH] Jim - show cwd when sourcing a file

2008-07-20 Thread Øyvind Harboe
Committed. THanks! -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd

Re: [Openocd-development] [PATCH] OCD naming compulsion... grrrr

2008-07-20 Thread Øyvind Harboe
Committed. Thanks! -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 XScale Cortex JTAG debugger and flash programmer ___ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/open

Re: [Openocd-development] "reset_mode argument is deprecated"

2008-07-20 Thread Øyvind Harboe
On Sat, Jul 19, 2008 at 7:41 PM, Duane Ellis <[EMAIL PROTECTED]> wrote: > In target.c - the error message is as follows: > > if (strcmp(args[2], "reset_halt") == 0) > { >LOG_WARNING("reset_mode argument is deprecated. reset_mode = > reset_run"); > } > > Deprecated means: >KEY THING: It stil