On Fri, Jul 15, 2011 at 10:38 PM, Xiaofan Chen <[email protected]> wrote:
> Historical reference back in June 2009.
> Under Windows, Freddie found that ftd2xx is significantly faster
> than libftdi. I will try to use LPC-P2148 to see if that is still
> the case now.
>
> https://lists.berlios.de/pipermail/openocd-development/2009-June/008193.html
> ++++++++++++++++++++
> Tested with a ~29kB image on LPC2103 (upload to flash):
> libftdi:
> > Start address 0x3c, load size 29640
> > Transfer rate: 6 KB/sec, 14820 bytes/write.
> ftd2xx:
> > Start address 0x3c, load size 29640
> > Transfer rate: 15 KB/sec, 14820 bytes/write.
>
> So: libftdi is 2.5x slower
> Tested with ~114kB image on STM32 (upload to flash):
> libftdi:
> > Start address 0x8000134, load size 114432
> > Transfer rate: 8 KB/sec, 16347 bytes/write.
> ftd2xx:
> > Start address 0x8000134, load size 114432
> > Transfer rate: 11 KB/sec, 16347 bytes/write.
> Again slower, this time only about 30%, but still, that's nowhere to
> "comparable"
> ++++++++++++
Actually the result is pretty close for the LPC-P2148 based test.
jtag_khz = 1500 KHz, 38.927 KiB/s (ftd2xx) versus 38.754 KiB/s.
D:\work\openocd\build_cxf\openocd_15Jul2011\bin>openocd_mingw_d2xx.exe
-f olimex_lpc_p2148_jtagkey2.cfg
Open On-Chip Debugger 0.5.0-dev-00956-ge7269e3-dirty (2011-07-15-21:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
Warning - assuming default core clock 12MHz! Flashing may fail if
actual core clock is different.
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
1500 kHz
Info : device: 6 "2232H"
Info : deviceID: 67358712
Info : SerialNumber: 53T9XDR4A
Info : Description: Amontec JTAGkey-2 A
Info : max TCK change to: 30000 kHz
Info : clock speed 1500 kHz
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
part: 0xf1f0, ver: 0x4)
Info : Embedded ICE version 4
Info : lpc2148.cpu: hardware has 2 breakpoint/watchpoint units
Info : accepting 'telnet' connection from 4444
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
part: 0xf1f0, ver: 0x4)
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
Warn : NOTE! DCC downloads have not been enabled, defaulting to slow
memory writes. Type 'help dcc
Warn : NOTE! Severe performance degradation without fast memory access
enabled. Type 'help fast'.
fast memory access is enabled
dcc downloads are enabled
erased sectors 0 through 26 on flash bank 0 in 0.446000s
wrote 232748 bytes from file lpc2148.hex in 5.839000s (38.927 KiB/s)
D:\work\openocd\build_cxf\openocd_15Jul2011\bin>openocd_libftdi_mingw.exe
-f olimex_lpc_p2148_jtagkey2.cfg
Open On-Chip Debugger 0.5.0-dev-00956-ge7269e3-dirty (2011-07-15-22:00)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
Warning - assuming default core clock 12MHz! Flashing may fail if
actual core clock is different.
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
adapter_nsrst_delay: 100
jtag_ntrst_delay: 100
1500 kHz
Info : max TCK change to: 30000 kHz
Info : clock speed 1500 kHz
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
part: 0xf1f0, ver: 0x4)
Info : Embedded ICE version 4
Info : lpc2148.cpu: hardware has 2 breakpoint/watchpoint units
Info : accepting 'telnet' connection from 4444
Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (mfg: 0x787,
part: 0xf1f0, ver: 0x4)
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0x00000000
Warn : NOTE! DCC downloads have not been enabled, defaulting to slow
memory writes. Type 'help dcc'
Warn : NOTE! Severe performance degradation without fast memory access
enabled. Type 'help fast'.
fast memory access is enabled
dcc downloads are enabled
erased sectors 0 through 26 on flash bank 0 in 0.446000s
wrote 232748 bytes from file lpc2148.hex in 5.865000s (38.754 KiB/s)
--
Xiaofan
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development