On Sat, Jul 16, 2011 at 8:58 AM, Xiaofan Chen <xiaof...@gmail.com> wrote:
>> For the USB 2.0 Jtagkey2, using the WHQL driver and ftd2xx is
>> only about 5% faster than using libftdi and libusb-win32 filter driver
>> on top of the WHQL driver.
>>
>> jtag_khz = 1200 KHz, 11.826 KiB/s (ftd2xx) versus 11.296 KiB/s
>> (libftdi), (4.7% faster)
>> jtag_khz = 3000 KHz, 12.729 KiB/s (ftd2xx) versus 12.096 KiB/s
>> (libftdi), (5.2% faster)
>>
> But I will finish the test under Linux first. Since I got not good result
> under Ubuntu Linux, ...,  I will probably go back to Ubuntu to see
> whether I might have done something differently.

I rebuilt everything (libusb-stuge, libftdi-1.0 and OpenOCD) under
Ubuntu 11.04 (to try out libftdi-1.0) and now the result under Ubuntu
is more in line with other test results. The test shows that
ftd2xx does not offer any advantages compared to libftdi
under this test.

On the other hand, after the higher level codes are sorted out,
then probably the lower level codes can be more important
in the future.

The test also shows OpenOCD's speed get better with bigger
binary size.

For smaller binary of 123904 Bytes.
jtag_khz = 1200 KHz, 11.294 KiB/s (ftd2xx) versus 11.296 KiB/s (libftdi)
jtag_khz = 3000 KHz, 12.080 KiB/s (ftd2xx) versus 12.086 KiB/s (libftdi)

For bigger binary of 262144 Bytes.
jtag_khz=3000 KHz, 17.518 KiB/s (ftd2xx) versus 17.520 KiB/s (libftdi)

mcuee@Ubuntu:~/Desktop/build/openocd/lm3s1968$ openocd -f
luminary_jtagkey2.cfgOpen On-Chip Debugger
0.5.0-dev-00956-ge7269e3-dirty (2011-07-17-07:47)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
500 kHz
Info : max TCK change to: 30000 kHz
Info : clock speed 500 kHz
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : lm3s1968.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'telnet' connection from 4444
500 kHz
cortex_m3 reset_config sysresetreq
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0001e340 msp: 0x20000200
1200 kHz
flash 'stellaris' found at 0x00000000
auto erase enabled
wrote 123904 bytes from file demo.bin in 10.711829s (11.296 KiB/s)
3000 kHz
flash 'stellaris' found at 0x00000000
auto erase enabled
wrote 123904 bytes from file demo.bin in 10.011832s (12.086 KiB/s)
flash 'stellaris' found at 0x00000000
auto erase enabled
wrote 262144 bytes from file demobig.bin in 14.611854s (17.520 KiB/s)
500 kHz
cortex_m3 reset_config sysresetreq
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
shutdown command invoked

mcuee@Ubuntu:~/Desktop/build/openocd/lm3s1968$ openocd-d2xx -f
luminary_jtagkey2.cfg
Open On-Chip Debugger 0.5.0-dev-00956-ge7269e3-dirty (2011-07-17-07:48)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
500 kHz
Error: unable to get latency timer: 0
Error: ftd2xx 1.04 detected - this has known issues with
FT_GetLatencyTimer, upgrade to a newer version
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 500 kHz
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
Info : lm3s1968.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'telnet' connection from 4444
500 kHz
cortex_m3 reset_config sysresetreq
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0001df0c msp: 0x20000300
1200 kHz
flash 'stellaris' found at 0x00000000
auto erase enabled
wrote 123904 bytes from file demo.bin in 10.713832s (11.294 KiB/s)
3000 kHz
flash 'stellaris' found at 0x00000000
auto erase enabled
wrote 123904 bytes from file demo.bin in 10.016835s (12.080 KiB/s)
auto erase enabled
wrote 262144 bytes from file demobig.bin in 14.613848s (17.518 KiB/s)
500 kHz
cortex_m3 reset_config sysresetreq
Info : JTAG tap: lm3s1968.cpu tap/device found: 0x3ba00477 (mfg:
0x23b, part: 0xba00, ver: 0x3)
shutdown command invoked


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

Reply via email to