Re: [Openocd-development] STM32: flash write_image has an alignment issue and flash protect/erase is broken

2009-11-22 Thread Øyvind Harboe
Maybe the following example (output is pasted below) can illustrate the issue a bit better. First I try to flash a 20KB block, then a 21KB block and finally a 24KB block. Only the blocks of 20 and 24 succeed, because they happen to be nicely 4K alligned. All blocks that are not 4K alligned

Re: [Openocd-development] [PATCH 3/3] support for scripts in $HOME/.openocd

2009-11-22 Thread Øyvind Harboe
On Sun, Nov 22, 2009 at 1:56 AM, Andreas Fritiofson andreas.fritiof...@gmail.com wrote: On Sun, Nov 22, 2009 at 1:13 AM, Zach Welch z...@superlucidity.net wrote: Checkout your branch and run 'git rebase master'.  That will update your branch against the current master.  Then, do the same thing

Re: [Openocd-development] [PATCH 2/2] support for scripts in $HOME/.openocd

2009-11-22 Thread Øyvind Harboe
Search for alloc_printf(). It is a printf which allocates the string dynamically. Remember to free it up after you had finished using it + add error checking and propagation. -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

[Openocd-development] Document build broken when src != build

2009-11-22 Thread Øyvind Harboe
I can no longer build docs when src != build. I believe this is trivially reproducible and that the breakage is relatively recent(a month or so). Or... perhaps I'm missing some tool on my laptop? make docs make doxygen = both fail make doxygen/latex/refman.pdf make[1]: Entering directory

Re: [Openocd-development] [PATCH 3/3] support for scripts in $HOME/.openocd

2009-11-22 Thread Andreas Fritiofson
On Sun, Nov 22, 2009 at 9:51 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: Do not use variable length arrays. Use malloc(). If you use variable length arrays on the stack that messes with embedded / uCLinux hosts. Only if the embedded host uses a home directory path longer than what will

Re: [Openocd-development] Document build broken when src != build

2009-11-22 Thread Andreas Fritiofson
On Sun, Nov 22, 2009 at 10:17 AM, Øyvind Harboe oyvind.har...@zylin.com wrote: I can no longer build docs when src != build. I believe this is trivially reproducible and that the breakage is relatively recent(a month or so). Or... perhaps I'm missing some tool on my laptop? make docs make

Re: [Openocd-development] Document build broken when src != build

2009-11-22 Thread David Brownell
On Sunday 22 November 2009, Øyvind Harboe wrote: make[1]: *** No rule to make target `doxygen/latex/refman.pdf'.  Stop. Similar happens with src == build... ___ Openocd-development mailing list Openocd-development@lists.berlios.de

[Openocd-development] v0.3.2 branch at oharboe/v0.3.2

2009-11-22 Thread Øyvind Harboe
I need to backport some embedded/uClinux/pthread(?) stack overflow fixes from the sf master branch. I'll be maintaining a branch at oharboe/v0.3.2 and possibly pushing this to sf if there is any interest/once it has settled down. No problems affecting operating systems w/automatic stack

Re: [Openocd-development] STM32: flash write_image has an alignment issue and flash protect/erase is broken

2009-11-22 Thread Johnny Halfmoon
Øyvind Harboe wrote: Maybe the following example (output is pasted below) can illustrate the issue a bit better. First I try to flash a 20KB block, then a 21KB block and finally a 24KB block. Only the blocks of 20 and 24 succeed, because they happen to be nicely 4K alligned. All blocks that

Re: [Openocd-development] STM32: flash write_image has an alignment issue and flash protect/erase is broken

2009-11-22 Thread Øyvind Harboe
Clearly you know more about this problem than I intend to learn about it :-) Would it be possible to consider a change in the flash driver model that would allow the drivers to just deal with it? I'm loathe to add obscure and hard to grasp options... flash write_image unlock erase xxx should

Re: [Openocd-development] STM32: flash write_image has an alignment issue and flash protect/erase is broken

2009-11-22 Thread Øyvind Harboe
Perhaps more of flash write_image needs to be pushed into the flash drivers to give the flash drivers enough context? Some new fn call in the driver with a default implementation? -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer

[Openocd-development] Allocate working storage dynamically

2009-11-22 Thread Øyvind Harboe
David Brownell identified a few more important sites of non-trivial amounts of working memory allocated on stack. Change to dynamic allocation. -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer From

Re: [Openocd-development] Allocate working storage dynamically

2009-11-22 Thread David Brownell
On Sunday 22 November 2009, Øyvind Harboe wrote: David Brownell identified a few more important sites of non-trivial amounts of working memory allocated on stack. Correction: linux/scripts/checkstack.pl did that for us. ;) ___

Re: [Openocd-development] STM32: flash write_image has an alignment issue and flash protect/erase is broken

2009-11-22 Thread Johnny Halfmoon
Øyvind Harboe wrote: Perhaps more of flash write_image needs to be pushed into the flash drivers to give the flash drivers enough context? Some new fn call in the driver with a default implementation? That was my first thought. But then I thought that that would affect all drivers, so I

Re: [Openocd-development] Openocd vrs Commercial jtag dongles

2009-11-22 Thread Johnny Halfmoon
David Brownell wrote: On Saturday 21 November 2009, Duane Ellis wrote: It is just blindingly fast... I suspect that many of those speed improvements can be had even with a CPU-based solution ... ... Consider a board: USB -- Cortex-M3 -- level shifting -- JTAG ... Come up with

Re: [Openocd-development] OOCD V0.x.y doesn't work with STM32 low density devices?

2009-11-22 Thread Christian Dumhart
No, i tried alot of clock combinations from 1kHz to 1MHz, the clock is not the issue, i think. The electrical signals a very good (measured witz oscilloscop). I also tried to clock the target with 5MHz (with the PEEDI) and it works well. christian Original-Nachricht Datum:

[Openocd-development] What became of the generic LPC config script?

2009-11-22 Thread Øyvind Harboe
I can't seem to find the generic LPC config script work that was done(but never committed). What was the story on why it wasn't committed yet? -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer