I found there is porblems with SVN later than 844:
H:\MyProject\chameleon\Config>openocd_844 -f openocd_stm32.cfg
Open On-Chip Debugger 1.0 (2008-07-26-00:02) svn: 844M
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
Info: olink.c:966 olink_handle_olink_usb_command(): olink is on device with PID=0x2103 VID=0x03EB BULKOUT=0x02 BULKIN=0x82
User: command.c:334 command_print(): jtag_speed: 18000, 18000
Info: olink.c:408 olink_init(): OLink by Simon(compiled on Jul 28 2008)
Info: olink.c:426 olink_init(): buffer size for USB is 8192 bytes
Info: olink.c:442 olink_init(): OLink JTAG Interface ready
Info: jtag.c:1394 jtag_examine_chain(): JTAG device found: 0x3ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info: jtag.c:1394 jtag_examine_chain(): JTAG device found: 0x16410041 (Manufacturer: 0x020, Part: 0x6410, Version: 0x1)
Info: jtag.c:1394 jtag_examine_chain(): JTAG device found: 0x3ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info: jtag.c:1394 jtag_examine_chain(): JTAG device found: 0x16410041 (Manufacturer: 0x020, Part: 0x6410, Version: 0x1)
H:\MyProject\chameleon\Config>openocd -f openocd_stm32.cfg
Open On-Chip Debugger 1.0 (2008-07-30-13:11) svn: 881M
$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
Info: olink is on device with PID=0x2103 VID=0x03EB BULKOUT=0x02 BULKIN=0x82
jtag_speed: 18000
Info: OLink by Simon(compiled on Jul 28 2008)
Info: buffer size for USB is 8192 bytes
Info: OLink JTAG Interface ready
Info: JTAG device found: 0x3ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info: JTAG device found: 0x16410041 (Manufacturer: 0x020, Part: 0x6410, Version: 0x1)
Info: JTAG device found: 0x3ba00477 (Manufacturer: 0x23b, Part: 0xba00, Version: 0x3)
Info: JTAG device found: 0x16410041 (Manufacturer: 0x020, Part: 0x6410, Version: 0x1)
Warning:Failed to reset target into halted mode - issuing halt
waiting for target halted...
telnet(844):
Open On-Chip Debugger
> stm32x mass_erase 0
device id = 0x20016410
flash size = 32kbytes
stm32x mass erase complete
> flash write_image demo.bin 0x08000000
wrote 9892 byte from file demo.bin in 1.218750s (7.926282 kb/s)
> shutdown
telnet(881):
Open On-Chip Debugger
> halt
> stm32x mass_erase 0
device id = 0x20016410
flash size = 32kbytes
stm32x mass erase complete
> flash write_image demo.bin 0x08000000
wrote 9892 byte from file demo.bin in 2.312500s (4.177365 kb/s)
And if using GDB Server in EWARM, 844 can be operated at 7.7KB/s, but 881 can only be operated at 2.6KB/s.
Configuration file(Is that OK?):
# daemon configuration
# default ports
telnet_port 4444
gdb_port 3333
tcl_port 6666
# interface configuration
interface olink
# olink_usb VID PID BULKOUT BULKIN
olink_usb 0x03EB 0x2103 0x02 0x82
# jtag_speed(KHz)
jtag_speed 18000
jtag_nsrst_delay 0
jtag_ntrst_delay 0
reset_config trst_and_srst
# scan chain configuration
# jtag_device L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe
jtag_device 5 0x1 0x1 0x1e
# target configuration
target cortex_m3 little 0
# working_area <target> <address> <size> <backup|nobackup>
working_area 0 0x20000000 0x5000 nobackup
# flash bank <driver> <base> <size> <chip_width> <bus_width> <target> [options]
# flash bank stm32x <base> <size> 0 0 <target>
flash bank stm32x 0x08000000 0x20000 0 0 0
#scripts
init
reset halt