[Openocd-development] Reorganizing the target/board scripts

2010-12-18 Thread Øyvind Harboe
How about having target scripts export a proc as the default behavior rather than just executing statements? This would get rid of using (effectively global)variables as a way to communicate with these scripts. A proc also opens up for handling variations of targets in a single script. A stab at

Re: [Openocd-development] Problem loading to CFI flash

2010-12-18 Thread Antonio Borneo
On Sun, Dec 19, 2010 at 3:56 AM, Michael Schwingen wrote: > I think it is time to re-factor that target-algorithm code and pull the > target dependencies out of the CFI code, but that would be a separate step. Fully agree! ___ Openocd-development mailin

Re: [Openocd-development] Help needed for SAM3S4C

2010-12-18 Thread Michael Schwingen
Am 12/18/2010 09:05 PM, schrieb Kenan Özdemir: > Sorry I forgot to tell you that after a couple of steps, it is > returning to the main routine and then keeps executing the rest of the > code An embedded system has nowhere to go after you exit "main", so it might crash, restart, and re-enter main f

Re: [Openocd-development] [PATCH] Add support for Hilscher netX controllers

2010-12-18 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___ Openocd-d

Re: [Openocd-development] Proposal: update IXP42x config files

2010-12-18 Thread Øyvind Harboe
Hi Michael, you'll have to rebase your patch on top of the master branch and update the comments to use ;# at the end of lines as the master branch now follows tcl rules for comments. ";" => new statement, therefore ;# is effectively a statement "at the beginning of the line" if you will... --

Re: [Openocd-development] [PATCH] script: support only Tcl comments

2010-12-18 Thread Øyvind Harboe
Fantastic! Thanks! :-) Merged. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 63 25 00 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer __

Re: [Openocd-development] Help needed for SAM3S4C

2010-12-18 Thread Kenan Özdemir
Sorry I forgot to tell you that after a couple of steps, it is returning to the main routine and then keeps executing the rest of the code -- From: "Andreas Fritiofson" Sent: Saturday, December 18, 2010 8:18 PM To: "Kenan Özdemir" Cc: Subject: R

Re: [Openocd-development] Problem loading to CFI flash

2010-12-18 Thread Michael Schwingen
Am 12/17/2010 04:36 PM, schrieb Jonathan dumaresq: > Hi all, > > Here my first patches to be able to use the CFI driver on cortex M3 with the > helper code on target. This is probably not the better way of doing it, but > at least it's work. This have been tested on real hardware. The default cfg >

Re: [Openocd-development] Help needed for SAM3S4C

2010-12-18 Thread Andreas Fritiofson
On Fri, Dec 17, 2010 at 6:27 PM, Kenan Özdemir wrote: > Hi, > > i start working with the SAM3S4C, but having trouble with openOCD. When I > start debugging, the very first instructions are working fine, but after the > 3rd instruction, its jumping acrross the code. > > This is my main.cpp > > > in

Re: [Openocd-development] Problem loading to CFI flash

2010-12-18 Thread Andreas Fritiofson
On Fri, Dec 17, 2010 at 4:36 PM, Jonathan dumaresq wrote: > Hi all, > > Here my first patches to be able to use the CFI driver on cortex M3 with the > helper code on target. This is probably not the better way of doing it, but > at least it's work. This have been tested on real hardware. The defau

Re: [Openocd-development] [PATCH] script: support only Tcl comments

2010-12-18 Thread Antonio Borneo
On Sat, Dec 18, 2010 at 5:21 PM, Øyvind Harboe wrote: > Before this patch goes in, the scripts should be updated > to use ;# instead of # for end of line comments. Patch in attachment, compressed since too big. The replacement of '#' with ';#' has been done through scripts then, during manual rev

[Openocd-development] [PATCH] script: support only Tcl comments

2010-12-18 Thread Øyvind Harboe
Only Tcl comments are now supported. For classic style commands comments were supported at the end of the line. Move in the direction of letting the script language decide syntax, rather than have special rules for some commands. Before this patch goes in, the scripts should be updated to use ;#