On Mon, Mar 11, 2013 at 4:41 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:
> BTW, how good is fxload now? I have never used this myself,
> I use Cypress tools under Windows and cycfx2load under
> Linux and Mac OS X for FX2/FX2LP. Last time I tried fxload
> it did not work well whereas cycfx2prog (based on libusb-0.1
> and works under Windows with libusb-win32) worked well for me.
> cycfx2prog: http://www.triplespark.net/elec/periph/USB-FX2/software/

Just tested the libusbx fxload example under Mac OS X and
it seems to work fine.

The libusbdotnet application works well with the bulk endpoints
but not the isochronous bulk endpoint, not so sure it is problem
with the libusbdotnet or libusbx. The same firmware works
well with libsubK Kbench under Windows using the isoc endpoints
and the bulk endpoints.

FW: modified cystream FW to be used with standalone FX2 and
FX2LP:
http://www.cypress.com/?app=forum&id=167&rID=48493
http://www.cypress.com/?docID=35838

mymacmini:examples xiaofanc$ ./fxload -v -t fx2 -D 0x04b4:0x8613 -I
CYStream.hex

microcontroller type: fx2
CYStream.hex: type Intel HEX
single stage: load on-chip memory
open firmware image CYStream.hex for RAM upload
stop CPU
write on-chip, addr 0x00000100 len   18 (0x0012)
write on-chip, addr 0x00000114 len   10 (0x000a)
write on-chip, addr 0x00000120 len  135 (0x0087)
write on-chip, addr 0x000001a8 len   73 (0x0049)
write on-chip, addr 0x000001f2 len   42 (0x002a)
write on-chip, addr 0x00000aef len   10 (0x000a)
write on-chip, addr 0x000009a1 len   49 (0x0031)
write on-chip, addr 0x000008b8 len   99 (0x0063)
write on-chip, addr 0x000003dd len  412 (0x019c)
write on-chip, addr 0x00000033 len    3 (0x0003)
write on-chip, addr 0x000000fc len    4 (0x0004)
write on-chip, addr 0x00000a77 len   22 (0x0016)
write on-chip, addr 0x00000675 len  196 (0x00c4)
write on-chip, addr 0x00000080 len  124 (0x007c)
write on-chip, addr 0x00000579 len  252 (0x00fc)
write on-chip, addr 0x000007fd len    2 (0x0002)
write on-chip, addr 0x00000af9 len   14 (0x000e)
write on-chip, addr 0x0000021c len  449 (0x01c1)
write on-chip, addr 0x00000b07 len   14 (0x000e)
write on-chip, addr 0x00000a8e len   21 (0x0015)
write on-chip, addr 0x00000ab8 len   38 (0x0026)
write on-chip, addr 0x00000a52 len   37 (0x0025)
write on-chip, addr 0x00000aa3 len   21 (0x0015)
write on-chip, addr 0x00000961 len   64 (0x0040)
write on-chip, addr 0x000007ff len    1 (0x0001)
write on-chip, addr 0x00000b15 len    5 (0x0005)
write on-chip, addr 0x000007c5 len   56 (0x0038)
write on-chip, addr 0x00000b1a len   29 (0x001d)
write on-chip, addr 0x000009d2 len   47 (0x002f)
write on-chip, addr 0x0000091b len   70 (0x0046)
write on-chip, addr 0x00000a01 len   43 (0x002b)
write on-chip, addr 0x00000ade len   17 (0x0011)
write on-chip, addr 0x00000043 len    3 (0x0003)
write on-chip, addr 0x00000053 len    3 (0x0003)
write on-chip, addr 0x00000800 len  184 (0x00b8)
write on-chip, addr 0x00000000 len    3 (0x0003)
write on-chip, addr 0x00000739 len   12 (0x000c)
write on-chip, addr 0x00000a2c len   38 (0x0026)
write on-chip, addr 0x00000745 len  128 (0x0080)
write on-chip, addr 0x00000a8d len    1 (0x0001)
... WROTE: 2749 bytes, 40 segments, avg 68
reset CPU

mymacmini:libusbdotnet xiaofanc$ mono Bm-winusb.exe notestselect
mode=async buffercount=3 buffersize=512000 read list intf=0 altf=2
LibUsbDotNet USB Benchmark v2.2.9.110
Copyright (c) 2010 Travis Robinson. <libusbdot...@gmail.com>
website: http://sourceforge.net/projects/libusbdotnet
1. 0AC8:3420 Vimicro Corp. - PROLiNK PCC3220
2. 0424:2513
3. 05AC:8006
4. 04B4:1003 Cypress - CY-Stream
5. 046D:C52B Logitech - USB Receiver
6. 05E3:0606 USB2.0 Hub
7. 04F2:0760 Chicony - USB Keyboard
8. 0424:2513
9. 05AC:8006

Select device (1-9) :4

Benchmark device 04B4:1003 opened..
Read Test Information
        Vid / Pid       : 04B4h / 1003h
        Interface #     : 00h
        Alt Interface # : 02h
        Priority        : Normal
        Buffer Size     : 512000
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 0
        Verify Data     : Off

Bulk Read (Ep82h) max packet size: 512

While the test is running:
Press 'Q' to quit
Press 'T' for test details
Press 'I' for status information
Press 'R' to reset averages

Press 'Q' to exit, any other key to begin..

Avg. Bytes/s: 42740922.26 Transfers: 79 Bytes/s: 42740922.26
Avg. Bytes/s: 42755763.03 Transfers: 163 Bytes/s: 42769729.84
Avg. Bytes/s: 42752113.20 Transfers: 247 Bytes/s: 42745032.56
Avg. Bytes/s: 42743378.08 Transfers: 330 Bytes/s: 42717404.31
Avg. Bytes/s: 42746480.75 Transfers: 414 Bytes/s: 42758674.17
Avg. Bytes/s: 42741859.09 Transfers: 497 Bytes/s: 42718821.37
Avg. Bytes/s: 42743146.98 Transfers: 581 Bytes/s: 42750768.63
Avg. Bytes/s: 42744226.41 Transfers: 664 Bytes/s: 42751783.92
Avg. Bytes/s: 42743954.36 Transfers: 748 Bytes/s: 42741804.04
Avg. Bytes/s: 42742675.08 Transfers: 831 Bytes/s: 42731149.52
Avg. Bytes/s: 42746881.31 Transfers: 915 Bytes/s: 42788537.59
Avg. Bytes/s: 42747315.32 Transfers: 999 Bytes/s: 42752043.52
Avg. Bytes/s: 42749020.43 Transfers: 1082 Bytes/s: 42769554.07
Avg. Bytes/s: 42748166.82 Transfers: 1166 Bytes/s: 42737174.53
Avg. Bytes/s: 42748052.82 Transfers: 1249 Bytes/s: 42746451.46
Avg. Bytes/s: 42749078.10 Transfers: 1333 Bytes/s: 42764328.85
Avg. Bytes/s: 42748850.85 Transfers: 1417 Bytes/s: 42745244.98
Avg. Bytes/s: 42749539.02 Transfers: 1500 Bytes/s: 42761291.05
Avg. Bytes/s: 42749491.56 Transfers: 1584 Bytes/s: 42748643.98
Avg. Bytes/s: 42750147.42 Transfers: 1667 Bytes/s: 42762668.00
Avg. Bytes/s: 42750197.61 Transfers: 1751 Bytes/s: 42751193.58
qAvg. Bytes/s: 42750280.16 Transfers: 1835 Bytes/s: 42752001.02
waiting for Ep82h thread..
stopped Ep82h thread.
Read Test Information
        Vid / Pid       : 04B4h / 1003h
        Interface #     : 00h
        Alt Interface # : 02h
        Priority        : Normal
        Buffer Size     : 512000
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 0
        Verify Data     : Off

Bulk Read (Ep82h) max packet size: 512
        Total Bytes     : 940032000
        Total Transfers : 1836
        Avg. Bytes/sec  : 42749987.62
        Elapsed Time    : 21.99 seconds

Press any key to exit..

mymacmini:libusbdotnet xiaofanc$ mono Bm-winusb.exe notestselect
mode=async buffercount=3 buffersize=512000 write list intf=0 altf=1
LibUsbDotNet USB Benchmark v2.2.9.110
Copyright (c) 2010 Travis Robinson. <libusbdot...@gmail.com>
website: http://sourceforge.net/projects/libusbdotnet
1. 0AC8:3420 Vimicro Corp. - PROLiNK PCC3220
2. 0424:2513
3. 05AC:8006
4. 04B4:1003 Cypress - CY-Stream
5. 046D:C52B Logitech - USB Receiver
6. 05E3:0606 USB2.0 Hub
7. 04F2:0760 Chicony - USB Keyboard
8. 0424:2513
9. 05AC:8006

Select device (1-9) :4

Benchmark device 04B4:1003 opened..
Write Test Information
        Vid / Pid       : 04B4h / 1003h
        Interface #     : 00h
        Alt Interface # : 01h
        Priority        : Normal
        Buffer Size     : 512000
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 0
        Verify Data     : Off

Bulk Write (Ep02h) max packet size: 512

While the test is running:
Press 'Q' to quit
Press 'T' for test details
Press 'I' for status information
Press 'R' to reset averages

Press 'Q' to exit, any other key to begin..

Avg. Bytes/s: 34166777.00 Transfers: 63 Bytes/s: 34166777.00
Avg. Bytes/s: 34152371.09 Transfers: 130 Bytes/s: 34138836.31
Avg. Bytes/s: 34149688.01 Transfers: 196 Bytes/s: 34144404.40
Avg. Bytes/s: 34159335.99 Transfers: 263 Bytes/s: 34187591.25
Avg. Bytes/s: 34177868.13 Transfers: 330 Bytes/s: 34250808.49
Avg. Bytes/s: 34172705.11 Transfers: 397 Bytes/s: 34147298.05
Avg. Bytes/s: 34179101.90 Transfers: 464 Bytes/s: 34217054.46
Avg. Bytes/s: 34183120.95 Transfers: 531 Bytes/s: 34210980.34
Avg. Bytes/s: 34177991.81 Transfers: 597 Bytes/s: 34136781.49
Avg. Bytes/s: 34173329.17 Transfers: 664 Bytes/s: 34131839.00
Avg. Bytes/s: 34177144.91 Transfers: 731 Bytes/s: 34215006.77
Avg. Bytes/s: 34180517.87 Transfers: 798 Bytes/s: 34217361.64
Avg. Bytes/s: 34179501.34 Transfers: 865 Bytes/s: 34167398.74
Avg. Bytes/s: 34178569.82 Transfers: 932 Bytes/s: 34166547.98
Avg. Bytes/s: 34178838.91 Transfers: 998 Bytes/s: 34182639.20
qAvg. Bytes/s: 34181401.26 Transfers: 1065 Bytes/s: 34219614.43
waiting for Ep02h thread..
stopped Ep02h thread.
Write Test Information
        Vid / Pid       : 04B4h / 1003h
        Interface #     : 00h
        Alt Interface # : 01h
        Priority        : Normal
        Buffer Size     : 512000
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 0
        Verify Data     : Off

Bulk Write (Ep02h) max packet size: 512
        Total Bytes     : 545792000
        Total Transfers : 1066
        Avg. Bytes/sec  : 34181052.13
        Elapsed Time    : 15.97 seconds

Press any key to exit..

mymacmini:libusbdotnet xiaofanc$ mono Bm-winusb.exe notestselect
mode=async buffercount=3 buffersize=512000 list intf=0 altf=2
LibUsbDotNet USB Benchmark v2.2.9.110
Copyright (c) 2010 Travis Robinson. <libusbdot...@gmail.com>
website: http://sourceforge.net/projects/libusbdotnet
1. 0AC8:3420 Vimicro Corp. - PROLiNK PCC3220
2. 0424:2513
3. 05AC:8006
4. 04B4:1003 Cypress - CY-Stream
5. 046D:C52B Logitech - USB Receiver
6. 05E3:0606 USB2.0 Hub
7. 04F2:0760 Chicony - USB Keyboard
8. 0424:2513
9. 05AC:8006

Select device (1-9) :4

Benchmark device 04B4:1003 opened..
Loop Test Information
        Vid / Pid       : 04B4h / 1003h
        Interface #     : 00h
        Alt Interface # : 02h
        Priority        : Normal
        Buffer Size     : 512000
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 0
        Verify Data     : Off

Bulk Read (Ep82h) max packet size: 512
Bulk Write (Ep06h) max packet size: 512

While the test is running:
Press 'Q' to quit
Press 'T' for test details
Press 'I' for status information
Press 'R' to reset averages

Press 'Q' to exit, any other key to begin..

Avg. Bytes/s: 22438966.67 Transfers: 40 Bytes/s: 22438966.67
Avg. Bytes/s: 22471170.41 Transfers: 84 Bytes/s: 22500526.86
Avg. Bytes/s: 22482379.04 Transfers: 128 Bytes/s: 22503808.41
Avg. Bytes/s: 22487615.90 Transfers: 172 Bytes/s: 22502864.30
Avg. Bytes/s: 22492120.07 Transfers: 216 Bytes/s: 22509744.60
Avg. Bytes/s: 22492953.21 Transfers: 260 Bytes/s: 22497044.07
Avg. Bytes/s: 22494748.03 Transfers: 304 Bytes/s: 22505359.61
Avg. Bytes/s: 22496057.92 Transfers: 348 Bytes/s: 22505112.30
Avg. Bytes/s: 22495586.16 Transfers: 392 Bytes/s: 22491855.59
Avg. Bytes/s: 22496909.89 Transfers: 436 Bytes/s: 22508710.04
Avg. Bytes/s: 22496965.44 Transfers: 480 Bytes/s: 22497515.87
Avg. Bytes/s: 22497409.71 Transfers: 524 Bytes/s: 22502257.42
Avg. Bytes/s: 22498119.33 Transfers: 568 Bytes/s: 22506573.74
qAvg. Bytes/s: 22498781.88 Transfers: 612 Bytes/s: 22507338.26
waiting for Ep82h thread..
stopped Ep82h thread.
stopped Ep06h thread.
Loop Test Information
        Vid / Pid       : 04B4h / 1003h
        Interface #     : 00h
        Alt Interface # : 02h
        Priority        : Normal
        Buffer Size     : 512000
        Buffer Count    : 3
        Display Refresh : 1000 (ms)
        Transfer Timeout: 5000 (ms)
        Retry Count     : 0
        Verify Data     : Off

Bulk Read (Ep82h) max packet size: 512
        Total Bytes     : 313856000
        Total Transfers : 613
        Avg. Bytes/sec  : 22498613.80
        Elapsed Time    : 13.95 seconds

Bulk Write (Ep06h) max packet size: 512
        Total Bytes     : 313856000
        Total Transfers : 613
        Avg. Bytes/sec  : 22498652.51
        Elapsed Time    : 13.95 seconds

Press any key to exit..

-- 
Xiaofan

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel

Reply via email to