How to Run the c5505usb_ep_diag.exe

This test is designed for testing the read/write for C5505 USB <--> PC. The USB FIFO size is 512 byte.


1. Install the C5505USB_EP driver on the Host PC (WinXP)

1.0.	open a DOS command window and type in the following commands
1.1.	wdreg -inf C5505USB_EP_driver.inf install
1.2.	wdreg -inf C5505USB_EP_device.inf preinstall
1.3.	copy "wdapi1010.dll" to %windir%\system32

Normally the %windir%\system32 directory is C:\WINDOWS\system32
if you want to make sure the directory location, you can do following under window
Start (on the bottom-left corner of the PC) -> Run -> %windir%\system32

2. Power up the C5505 EVM and connect a JTAG to the EVM

3. Load and run the "UCSL_USB_PollExample_Out.pjt" (usb/example1),  "CSL_USB_IntcExample_Out.pjt" (usb/example2), 
or CSL_USB_DmaExample_Out.pjt" (usb/example3) under c55xx_csl\ccs_v3.3_examples or c55xx_csl\ccs_v4.0_examples 
in CSL release

4. Connect the USB cable between C5505 EVM and the PC, Window will prompt "a new drive has been found"; 
Do not use wizard, just tell the installation program you have a specific location, then tell it where 
the "C5505USB_EP_device.inf" is. Wait until it finishes.

5. USB Endpoint Read Test: Run c5505usb_ep_diag.exe by double click it. Simply select 

5.1.	Select "4" for the first prompt (Read/Write from pipes)
5.2.	Select "4" for the second prompt (Check Streaming READ speed)
5.3.	Type in "81" for the third prompt (Use EP1 IN)

6. USB Endpoint Write Test: Run c5505usb_ep_diag.exe by double click it. Simply select 

6.1.	Select "4" for the first prompt (Read/Write from pipes)
6.2.	Select "5" for the second prompt (Check Streaming WRITE speed)
6.3.	Type in "02" for the third prompt (Use EP2 OUT)

7. The reading and writing speed will be displayed after the tests are finished. 

The source code for the c5505usb_ep_diag.exe is in C5505USB_EP_diag_src. You will need the Microsoft 
Visual Studio 2005 or later to be able to build it.