> -----Original Message-----
> From: openocd-development-boun...@lists.berlios.de 
> [mailto:openocd-development-boun...@lists.berlios.de] On 
> Behalf Of Thomas Kindler
> Sent: 21 March 2009 19:20
> To: openocd-development@lists.berlios.de
> Subject: [Openocd-development] STM32 flash performance
> 
> Hi!
> 
> I'm using a JTAGkey-Tiny to program my STM32F103VBT6 CPU, but 
> the flash performance seems to be _very_ low.. (around 6 kb/s).
> 
> I already tried to enable the PLL and setting jtag_khz to 
> 6000 (which works), but it doesn't get any faster.  Here's my 
> openocd.cfg:
> 
> 
> source [find board/stm32f10x_128k_eval.cfg]
> source [find interface/jtagkey-tiny.cfg]
> 
> proc  flash_image { filename } {
>    reset halt
> 
>    mww  0x40022000  0x2        # FLASH_ACR        2 waitstates
>    mww  0x40021004  0x380402   # RCC_CFGR         HSI*16 = 64 MHz
>    mww  0x42420060  0x1        # RCC_CFGR(PLLON)  Enable PLL
>    jtag_khz  6000
> 
>    flash write_image erase $filename
> 
>    jtag_khz  500
>    reset run
>    shutdown
> }
> 
> init
> 

The write time will include the erase, this can be speeded up by using the
mass erase, eg.
stm32x mass_erase 0
flash write_image $filename

Cheers
Spen

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to