[Openocd-development] PATCH - Fixed bug in tcl-server [ was: openocd crash when sending command over tcl_port ]

2010-05-03 Thread M B
Hello, I have dug a little bit deeper and found a solution to solve the segmentation fault in tcl_server.c Attached you find the patch against v0.4.0 and master. As this is my first patch against openocd tell me if something could be improved. -- Matthias Bode openocd-v0.4.0-tcl_server.patch

Re: [Openocd-development] Atmel AT91SAM9XXX NAND Flash

2010-05-03 Thread Dean Glazeski
Well that's a strange one. Thanks for doing the comparison for me and sharing the result and fix! // Dean Glazeski On Mon, May 3, 2010 at 12:01 PM, Gary Carlson wrote: > Dean/Peter, > > Well I have some good news on this problem. I finally discovered on Friday > what the issue was. Atmel¹s t

Re: [Openocd-development] Atmel AT91SAM9XXX NAND Flash

2010-05-03 Thread Gary Carlson
Dean/Peter, Well I have some good news on this problem. I finally discovered on Friday what the issue was. Atmel¹s technical support confirmed my suspicions this morning. On the bright side, it turns out this is not directly an OpenOCD issue. :) Atmel¹s internal BootROM masked programmed at t

[Openocd-development] [PATCH] flash: less bogus errors

2010-05-03 Thread Øyvind Harboe
Removed bogus errors when trying to allocate a large a target memory buffer as possible. Signed-off-by: Øyvind Harboe --- src/flash/nor/aduc702x.c |2 +- src/flash/nor/cfi.c |4 ++-- src/flash/nor/lpc2900.c |2 +- src/flash/nor/pic32mx.c |2 +- src/flash/nor/stellaris.

Re: [Openocd-development] jim_mcrmrc: no command context @iMX35

2010-05-03 Thread Øyvind Harboe
This patch should fix the problem. The patch is against openocd/master As this post was made back in January, I'm including a reference to the original discussion here... http://www.mail-archive.com/openocd-development@lists.berlios.de/msg11864.html -- Meet Zylin at ESC 2010 San Jose April

[Openocd-development] [PATCH 3/3] str7x: fix bogus error messages

2010-05-03 Thread Øyvind Harboe
Remove bogus error messages when trying to allocate a large chunk of target memory and then falling back to a smaller one. Signed-off-by: Øyvind Harboe --- src/flash/nor/str7x.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/flash/nor/str7x.c b/src/flash/nor/

[Openocd-development] [PATCH 2/3] str7x: improve error handling

2010-05-03 Thread Øyvind Harboe
clean up error handling a bit. No change in behavior. Signed-off-by: Øyvind Harboe --- src/flash/nor/str7x.c | 192 +++-- 1 files changed, 122 insertions(+), 70 deletions(-) diff --git a/src/flash/nor/str7x.c b/src/flash/nor/str7x.c index d5e8e28..d6

[Openocd-development] [PATCH 1/3] target: clean up target memory allocation error messages

2010-05-03 Thread Øyvind Harboe
target memory allocation can be implemented not to show bogus error messages. E.g. when trying a big allocation first and then a smaller one if that fails. Signed-off-by: Øyvind Harboe --- src/target/target.c | 17 ++--- src/target/target.h |8 2 files changed, 22 ins

Re: [Openocd-development] Atmel AT91SAM9XXX NAND Flash

2010-05-03 Thread Dean Glazeski
On Mon, May 3, 2010 at 6:36 AM, Peter Korsgaard wrote: > > "Gary" == Gary Carlson writes: > > Gary> I wanted to see if anyone has any experience trying to upload the > Gary> AT91Bootstrap code into NAND flash for any of the AT91SAM9XXX parts > (i.e. > Gary> AT91SAM9260, AT91SAM9G20, etc.)

Re: [Openocd-development] Atmel AT91SAM9XXX NAND Flash

2010-05-03 Thread Peter Korsgaard
> "Gary" == Gary Carlson writes: Gary> I wanted to see if anyone has any experience trying to upload the Gary> AT91Bootstrap code into NAND flash for any of the AT91SAM9XXX parts (i.e. Gary> AT91SAM9260, AT91SAM9G20, etc.) using OpenOCD? Gary> I have tried erasing and programming the fir

Re: [Openocd-development] bitbang-jtag: FT232R based JTAG with OpenOCD patch

2010-05-03 Thread Øyvind Harboe
I think it is great that we see these posts w/references to modified versions of OpenOCD. I understand that there are people out there that need something special done and don't want to or can't participate in the openocd mailing list, but that doesn't mean that there aren't others who would step

Re: [Openocd-development] [PATCH] STM32 flash erase timeout fix

2010-05-03 Thread Øyvind Harboe
Merged. Thanks! -- Meet Zylin at ESC 2010 San Jose April 26 - 30. 2010 http://www.zylin.com/events_esc2010.html Ø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 ___