[Openocd-development] [PATCH 1/2] svf: fix USAGE and related error reporting

2011-01-02 Thread Jon Povey
Signed-off-by: Jon Povey jon.po...@racelogic.co.uk --- Pretty trivial, was just printing svf USAGE, macro bugs. src/svf/svf.c | 13 - 1 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/svf/svf.c b/src/svf/svf.c index a015e3c..a6f2f6f 100644 --- a/src/svf/svf.c +++

[Openocd-development] [PATCH 2/2] svf: implement sleep for RUNTEST min_time

2011-01-02 Thread Jon Povey
Signed-off-by: Jon Povey jon.po...@racelogic.co.uk min_time was effectively ignored, I needed it to program a Lattice MachXO which uses a RUNTEST to wait for an erase operation, amongst other things. With this patch pauses happen and I can program the device with an SVF generated in LSC ispVM

Re: [Openocd-development] [PATCH 02/21] NAND/CORE: Replace decimal dot in messages

2011-01-02 Thread Øyvind Harboe
As long as we're not localized(which I'm not particularly keen on), I'm fine with sticking to US/UK English and localization rules. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7

Re: [Openocd-development] [PATCH 1/9] NAND/TCL: prepare for common target reference

2011-01-02 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___

Re: [Openocd-development] [PATCH 1/2] svf: fix USAGE and related error reporting

2011-01-02 Thread Øyvind Harboe
Merged. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer ___

Re: [Openocd-development] Question about new target script structure

2011-01-02 Thread Øyvind Harboe
Hi Michael, it's great to see the first meaty questions on this new init structure. :-) On Fri, Dec 31, 2010 at 12:49 PM, Michael Trensch mtren...@googlemail.com wrote: Hiho, I was just trying to port the netX scripts to the new target script structure with the setup_target proc. I remarked

Re: [Openocd-development] [PATCH 02/21] NAND/CORE: Replace decimal dot in messages

2011-01-02 Thread Antonio Borneo
On Sat, Jan 1, 2011 at 2:44 AM, David Brownell davi...@pacbell.net wrote: --- On Fri, 12/31/10, Antonio Borneo borneo.anto...@gmail.com wrote: Table of NAND devices reports operating voltage. Replace comma with proper decimal dot. A more accurate patch comment would be that you are

[Openocd-development] [PATCH 2/4] cfi_protect is not implemented on Spansion flashes (many do not even have protection bits). Demote from error to warning, so that common board code can use flash wri

2011-01-02 Thread Michael Schwingen
Signed-off-by: Michael Schwingen mich...@schwingen.org --- src/flash/nor/cfi.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c index 5a35aae..f25f46d 100644 --- a/src/flash/nor/cfi.c +++ b/src/flash/nor/cfi.c @@ -1163,8

[Openocd-development] (no subject)

2011-01-02 Thread Michael Schwingen
[resend, because the list rejected my previous submission] when working on a board with a SST 39VF020 flash, I noticed that support for these flashs seems to be broken, because the CFI code uses timeout values that are initialized to zero in the non-CFI code. The following patches change that to

[Openocd-development] [PATCH 3/4] cfi.c: whitespace cleanup

2011-01-02 Thread Michael Schwingen
Signed-off-by: Michael Schwingen mich...@schwingen.org --- src/flash/nor/cfi.c | 44 ++-- 1 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c index f25f46d..10a8f62 100644 --- a/src/flash/nor/cfi.c

[Openocd-development] [PATCH 1/4] non-CFI flash code uses data from CFI structures. Make sure that timeouts are filled in on non-CFI flashes, and print CFI information in all cases, nut just on CFI fl

2011-01-02 Thread Michael Schwingen
Signed-off-by: Michael Schwingen mich...@schwingen.org --- src/flash/nor/cfi.c | 187 +++ src/flash/nor/non_cfi.c | 10 ++- 2 files changed, 98 insertions(+), 99 deletions(-) diff --git a/src/flash/nor/cfi.c b/src/flash/nor/cfi.c index

Re: [Openocd-development] [PATCH 02/21] NAND/CORE: Replace decimal dot in messages

2011-01-02 Thread Øyvind Harboe
I see the subject of localization as orthogonal to making it consistent. Even if we did decide to make it localization, I'd be happy stopping by consistent along the way, so I merged your patch. -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 /

Re: [Openocd-development] Question about new target script structure

2011-01-02 Thread Michael Trensch
Hi Øyvind, On 02.01.2011 20:29, Øyvind Harboe wrote: Hiho, I was just trying to port the netX scripts to the new target script structure with the setup_target proc. I remarked that the script changes seem to be fitted to real embedded processors with all peripherals on the die. But this

Re: [Openocd-development] (no subject)

2011-01-02 Thread Øyvind Harboe
Merged less the whitespace fixes as there are other patches in the pipe that this would cause constipation for. Thanks! -- Øyvind Harboe Can Zylin Consulting help on your project? US toll free 1-866-980-3434 / International +47 51 87 40 27 http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11

Re: [Openocd-development] Question about new target script structure

2011-01-02 Thread Øyvind Harboe
Ok. Hope I got that right. init_targets is the default function to initialize the chip on the JTAG interface and resides in the target scripts. Not really. init_targets is perhaps a bad name. It could have been run default configuration procedure or some such... targets woud be misleading for