On Thu, May 10, 2012 at 7:18 PM, Andreas Fritiofson
<[email protected]> wrote:
> I've now tested at work with the following configuration:
>
> Windows XP (OpenOCD cross-compiled on Ubuntu 12.04 with bundled mingw-w64)
> Libusb 1.0.9
> Olimex ARM-USB-OCD-H with WinUSB driver installed using Zadig
> STM32F103
>
> This works fine with the performance test script I posted earlier. Results:
>
> $ bin/openocd.exe
> Open On-Chip Debugger 0.6.0-dev-00550-g38d2298 (2012-05-04-11:51)
> Licensed under GNU GPL v2
> For bug reports, read
> http://openocd.sourceforge.net/doc/doxygen/bugs.html
> Info : only one transport option; autoselect 'jtag'
> 1000 kHz
> adapter_nsrst_delay: 100
> jtag_ntrst_delay: 100
> cortex_m3 reset_config sysresetreq
> Info : clock speed 1000 kHz
> Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
> 0x23b, part: 0xba00, ver: 0x3)
> Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
> part: 0x6410, ver: 0x1)
> Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
> 1000 kHz
> Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
> 0x23b, part: 0xba00, ver: 0x3)
> Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
> part: 0x6410, ver: 0x1)
> target state: halted
> target halted due to debug-request, current mode: Thread
> xPSR: 00000000 pc: 0xd5657ab0 msp: 0xd96c7fa4
> 8000 kHz
> Info : device id = 0x20036410
> Info : flash size = 64kbytes
> stm32x mass erase complete
> wrote 65536 bytes from file test.bin in 1.812535s (35.310 KiB/s)
> verified 65536 bytes in 0.171878s (372.357 KiB/s)
> dumped 65536 bytes in 0.187504s (341.326 KiB/s)
> 20480 bytes written at address 0x20000000
> downloaded 20480 bytes in 0.046875s (426.667 KiB/s)
> shutdown command invoked
Very good results.
To use your openocd.cfg, I borrowed an IAR STM32 Starter Kit
and I got even better results than yours with Amontec JTAGkey-2
(FT2232-H based) under Mac OS X 10.7.3.
mymacmini:stm32 xiaofanc$ cat openocd.cfg
source [find interface/ftdi/jtagkey2.cfg]
#source [find interface/jtagkey.cfg]
#source [find interface/ftdi/olimex-arm-usb-ocd-h.cfg]
#source [find interface/olimex-arm-usb-ocd-h.cfg]
#source [find interface/rlink.cfg]
source [find target/stm32f1x.cfg]
#source [find board/stm32f4discovery.cfg]
#source [find board/stm32vldiscovery.cfg]
$_TARGETNAME configure -event reset-start {
adapter_khz 1000
}
$_TARGETNAME configure -event reset-init {
mww 0x40022000 0x32
mww 0x40021004 0x3c0400
mww 0x40021000 0x01000883
sleep 10
mww 0x40021004 0x3c0402
sleep 10
adapter_khz 8000
}
init
reset init
poll off
stm32f1x mass_erase 0
dump_image dump.bin 0x08000000 131072
verify_image dump.bin 0x08000000
flash write_image dump.bin 0x08000000
verify_image dump.bin 0x08000000
load_image dump.bin 0x20000000 bin 0x20000000 20480
shutdown
mymacmini:stm32 xiaofanc$ ~/bin/bin/openocd -f openocd.cfg
Open On-Chip Debugger 0.6.0-dev-00448-gfd32452-dirty (2012-05-11-21:15)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
1000 kHz
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
cortex_m3 reset_config sysresetreq
Info : clock speed 1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
part: 0x6410, ver: 0x1)
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
1000 kHz
Info : JTAG tap: stm32f1x.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : JTAG tap: stm32f1x.bs tap/device found: 0x16410041 (mfg: 0x020,
part: 0x6410, ver: 0x1)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080049e4 msp: 0x20001040
8000 kHz
Info : device id = 0x20036410
Info : flash size = 128kbytes
stm32x mass erase complete
dumped 131072 bytes in 0.334844s (382.268 KiB/s)
verified 131072 bytes in 0.283918s (450.834 KiB/s)
wrote 131072 bytes from file dump.bin in 3.541049s (36.147 KiB/s)
verified 131072 bytes in 0.282782s (452.646 KiB/s)
20480 bytes written at address 0x20000000
downloaded 20480 bytes in 0.046920s (426.257 KiB/s)
shutdown command invoked
--
Xiaofan
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel