Hi there Freddie, I have the same issue with an LPC1766 (ruunig at 100Mhz) ... I have my JTAG set up for 6Mhz and can only flash at about 8..10kB/s, even slower than you .. Is this an OpenOCD issue? I also tried flashing an i.mx31 with external flash, and that flashed at about the same rate, so it does look to be a software issue ..
Cheers, Bernie ------------------------------------------------------------------------ ------------------ Hiding the Truth with "Political Correctness" is the same as Lying ... BRM -----Original Message----- From: openocd-development-boun...@lists.berlios.de [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 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 oscillator (final chip frequency 64MHz) and sets JTAG frequency to 6MHz I achieve speeds of... 13.5kB/s... Flash sequence: > reset init > stm32x mass_erase > flash write_image c:\\stm32.hex Reset init script: $_TARGETNAME configure -event reset-init { mww 0x40022000 0x32 # flash latency 2 mww 0x40021004 0x3c0400 # max PLL multiplier 16x mww 0x40021000 0x01000883 # enable PLL sleep 10 mww 0x40021004 0x3c0402 # connect PLL as main clock source sleep 10 adapter_khz 6000 } I've verified that this script works fine (the values in registers are fine), so why there is almost none increase in the loading speed? 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. 4\/3!! _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development