Re: [Openocd-development] STM32 flash write speed

2010-10-19 Thread Laurent Gauch
On 2010-10-18 21:53, Andreas Fritiofson wrote: / Well, that's BS. The STM32 flash has a nominal programming time of // 52.5µs per 16 bits. So the theoretical max speed anyone can achieve is // roughly 37.2 KiBytes/s. If you see claims of speeds way above that // they're either lies, load-to-ram

[Openocd-development] STM32 flash write speed

2010-10-18 Thread Freddie Chopin
Hi! When I flash some big image (~128kB) on STM32 without any tricks: reset halt stm32x mass_erase flash write_image c:\\stm32.hex I achieve speeds of 12kB. JTAG frequency is 1MHz. When I use my reset init script which sets the flash latency to 2 cycles, starts the PLL with internal RC

Re: [Openocd-development] STM32 flash write speed

2010-10-18 Thread Bernard Mentink
[mailto:openocd-development-boun...@lists.berlios.de] On Behalf Of Freddie Chopin Sent: Tuesday, 19 October 2010 6:15 a.m. To: openocd-development@lists.berlios.de Subject: [Openocd-development] STM32 flash write speed Hi! When I flash some big image (~128kB) on STM32 without any tricks: reset

Re: [Openocd-development] STM32 flash write speed

2010-10-18 Thread Bernard Mentink
-Original Message- From: Øyvind Harboe [mailto:oyvind.har...@zylin.com] Sent: Tuesday, 19 October 2010 7:23 a.m. To: Bernard Mentink Cc: Freddie Chopin; openocd-development@lists.berlios.de Subject: Re: [Openocd-development] STM32 flash write speed I measured ca. 100kBytes/s w/ZY1000

Re: [Openocd-development] STM32 flash write speed

2010-10-18 Thread Freddie Chopin
On 2010-10-18 20:22, Øyvind Harboe wrote: Generally to improve performance of high latency devices, your best bet is to do some profiling and figure out whether it's possible to rewrite the OpenOCD higher level code to issue longer clock/in out sequences. Not at my level of knowledge (; If

Re: [Openocd-development] STM32 flash write speed

2010-10-18 Thread Øyvind Harboe
On Mon, Oct 18, 2010 at 8:29 PM, Bernard Mentink bernard.ment...@trimble.co.nz wrote: Hi Øyvind, So you achieved 100kbytes/sec on an LPC1778 ... Wow, can you share your config file? It's the board/mbc1700.cfg that is in origin/master. Did you use the ZY1000 for this test. I am using just a

Re: [Openocd-development] STM32 flash write speed

2010-10-18 Thread Øyvind Harboe
On Mon, Oct 18, 2010 at 8:54 PM, Bernard Mentink bernard.ment...@trimble.co.nz wrote: Regarding flashing, I am using the mon flash write_image erase unlock file.elf 0 elf command from GDB, I don't know if that is executing on the target.. Try just load from GDB. Well I have tried that,

Re: [Openocd-development] STM32 flash write speed

2010-10-18 Thread Andreas Fritiofson
On Mon, Oct 18, 2010 at 7:15 PM, Freddie Chopin freddie_cho...@op.pl wrote: Hi! When I flash some big image (~128kB) on STM32 without any tricks: reset halt stm32x mass_erase flash write_image c:\\stm32.hex I achieve speeds of 12kB. JTAG frequency is 1MHz. When I use my reset init script

Re: [Openocd-development] STM32 flash write speed

2010-10-18 Thread Bernard Mentink
This test was caused by curiosity which started after reading one forum post in which someone describes that in CrossWorks when using the same JTAG he achieved almost 150kB/s, over 14x faster than OpenOCD. Well, that's BS. The STM32 flash has a nominal programming time of 52.5µs per 16

Re: [Openocd-development] STM32 flash write speed

2010-10-18 Thread Freddie Chopin
On 2010-10-18 21:53, Andreas Fritiofson wrote: Well, that's BS. The STM32 flash has a nominal programming time of 52.5µs per 16 bits. So the theoretical max speed anyone can achieve is roughly 37.2 KiBytes/s. If you see claims of speeds way above that they're either lies, load-to-ram figures or