Re: [Openocd-development] [PATCH] CFI CORE: bug-fix protect single sector

2010-03-09 Thread Antonio Borneo
David, I'm not sure I fully catch your points. Anyway, I agree that code got even more confused and that comments are not consistent with code anymore. Why not changing the whole procedure in a cleaner way? I've put in attachment my proposal Execution is more linear and without goto statement. Mo

Re: [Openocd-development] SEGV in reset on Cortex M3/LPC1768

2010-03-09 Thread David Brownell
On Tuesday 09 March 2010, Jörg Fischer wrote: > I'm getting only segfaults using current git, > whenever I tried "reset" (init/halt/run). I didn' see that. Did you compare your config file to the one I was using (board/iar_lpc1768.cfg) ?? ISTR you were, for a while, using a hacked config file wh

Re: [Openocd-development] [SWD] STM32Primer2 JTAG/SWD + RLink pinout

2010-03-09 Thread CeDeROM
On Mon, Mar 8, 2010 at 6:04 AM, somboon sopee wrote: > On Sun, Mar 7, 2010 at 3:29 AM, CeDeROM wrote: >> >> Hello! >> >> If anyone is interested to work on the SWJ/RLink with STM32Primer2, >> here goes the pinouts: >> http://www.tomek.cedro.info/content/view/236/1/lang,en/ > >Can't enter, it show

[Openocd-development] SEGV in reset on Cortex M3/LPC1768

2010-03-09 Thread Jörg Fischer
Hi, I'm getting only segfaults using current git, whenever I tried "reset" (init/halt/run). Im using openocd with ftd2xx on windows/MingW gcc 3.4.5. My Target Board is the Hitex LPC1768 Stick (which includes an ft2232 for JTAG). Backtrace below: #0 0xe00ff003 in ?? () No symbol table info avai

Re: [Openocd-development] [PATCH] CFI CORE: bug-fix protect single sector

2010-03-09 Thread Øyvind Harboe
Makes sense to me. I tried to review & build it, but that code isn't super obvious and has a lot of cases... Merged. -- Øyvind Harboe 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-development] imx31.cpu: ran after reset and before halt ...

2010-03-09 Thread Alberto Panizzo
Hi all! First of all thank you for the great work in OpenOCD. I am trying to setup a JTAG debug connection with a Freescale i.MX31 based board (Atmark Armadillo 500) with the Amontec JtagKey-2 interface. I'm using the latest git sources. The board is provided with a full 20 pin JTAG connector very

[Openocd-development] [PATCH 4/4] STM32: flash loader cleanup

2010-03-09 Thread Spencer Oliver
>From 299dd704fae782ba73ac4b23062afa735a39c38c Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Mon, 8 Mar 2010 20:32:11 + Subject: [PATCH 4/4] STM32: flash loader cleanup - make algorithm array static const. Signed-off-by: Spencer Oliver --- src/flash/nor/stm32x.c | 37

[Openocd-development] [PATCH] CFI CORE: bug-fix protect single sector

2010-03-09 Thread Antonio Borneo
Cannot protect or unprotect single sector in cfi flash. When first==last the procedure fails. Signed-off-by: Antonio Borneo --- src/flash/nor/core.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flash/nor/core.c b/src/flash/nor/core.c index 767006d..8b581b0 1006