I am pretty sure that there is a problem with the Jlink driver here as
well. This is my config:

# script for stm32

# use jlink
interface jlink

# jtag speed
jtag_khz 500

jtag_nsrst_delay 100
jtag_ntrst_delay 100

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
jtag_device 5 0x1 0x1 0x1e

#target <type> <startup mode>
#target arm7tdmi <reset mode> <chainpos> <endianness> <variant>
target cortex_m3 little 0 0


working_area 0 0x20000000 49152 nobackup

#flash bank str7x <base> <size> 0 0 <target#> <variant>
flash bank stm32x 0 0 0 0 0

gdb_memory_map enable
gdb_flash_program enable
# For more information about the configuration files, take a look at:
# openocd.texi

2009/2/24 SimonQian <[email protected]>:
> Hi,
>> I use a JLink to flash my STM32 and I would love to be able to program
>> at the speeds you are seeing!  I have been meaning to look at why this
>> is so slow for a while but haven't been able to find any time.  I hope
>> to be able to get some of the new instrumentation changes in a give it
>> a try this week.
>> wrote 232380 byte from file lpm.bin in 262.544495s (0.864362 kb/s)
>
> It's abnormal for JLink to run at this speed.
> Is JLink configured OK? Does it run at 500kHz speed?
>
> And I make Versaloon to process raw JTAG data(tdi, tms) using DMA, but it's
> NOT that slow.
> For STM32, at about 8kB/s for flash programming.
> But my driver is based on Versaloon driver.
> Is it possible that there is problem with JLink driver?
>
> 2009-02-25
> ________________________________
> Best Regards, Simon Qian
>
> SimonQian([email protected]) ---- www.SimonQian.com
> ________________________________
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to