EZ-USB Development Kit User Guide, Doc. # 001-66390 Rev. *D
85
EZ-USB Development Kit Firmware Examples
SYNCDELAY; //
EP8BCH = MSB(myBufferCount);
SYNCDELAY; //
EP8BCL = LSB(myBufferCount); // arm EP8IN
}
8.6.2
Building Bulksrc Firmware Example Code for EZ-USB RAM Memory and EEPROM
Click on the
Build
Target
button at the top right corner of the IDE. The total code bytes of the Bulk-
src firmware example is less than the 4-k code limit Keil µVision2 IDE provided along with the kit.
The output of the
Build
Target
is the
bulksrc.hex
and
bulksrc.iic
files
8.6.3
Method to Download Bulksrc Firmware Image to EZ-USB Internal RAM and
EEPROM
Refer to
Method to Download Firmware Image to EZ-USB Internal RAM Memory on page 69
and fol-
low a similar procedure to download
bulksrc.hex
to the RAM memory and
bulksrc.iic
to Large
EEPROM using
Cyconsole/CyControlCente
r. The
bulksrc.hex
and
bulksrc.iic
files are located
at
<Installed_directory>\<Version>\Firmware\Bulksrc
. After downloading, the firm-
ware re-enumerates with the PC using its internal VID/PID-0x04B4/0x1004.
8.6.4
Binding Cypress USB Driver for the Downloaded Firmware Image
The
Bulksrc
firmware uses vendor class (0xFF) with VID/PID-0x04B4/1004. This example should
bind with the Cypress-generic USB driver, cyusb.sys, and the driver information file,
cyusbfx1_fx2lp.inf
, which contains the relevant VID/PID of this example. Follow the procedure out-
lined in
Binding Cypress USB Driver to EZ-USB Development Board on page 45
to manually bind
the driver using the Windows Hardware Wizard. If the binding process is performed for any one of
the previous firmware examples, you can skip the process for this example.
8.6.5
Testing the Bulksrc Firmware Functionality
The Bulksrc firmware functionality can be tested using the CyConsole utility. Following are the steps
■
Open the CyConsole PC application from
Start > All Programs > Cypress > Cypress Suit-
eUSB 3.4.7 > CyConsole
.
■
Next, go to
Options > EZ-USB Interface
. The EZ-USB Interface Window pops up. Select EP2
OUT as the pipe and enter the length as 512 bytes. Enter the sample data as 0x5. Observe the
constant pattern, 0x5, displayed on the EZ-USB window. Select the EP6 IN endpoint with a 512-
byte length and click on the
BulkTrans
button and observe the data with incremental pattern
starting with 0x2.
Summary of Contents for CY3674
Page 18: ...18 EZ USB Development Kit User Guide Doc 001 66390 Rev D Getting Started...
Page 34: ...34 EZ USB Development Kit User Guide Doc 001 66390 Rev D Development Kit Contents...
Page 54: ...54 EZ USB Development Kit User Guide Doc 001 66390 Rev D Cypress USB Drivers for EZ USB Kits...
Page 110: ...110 EZ USB Development Kit User Guide Doc 001 66390 Rev D Resources...
Page 113: ...EZ USB Development Kit User Guide Doc 001 66390 Rev D 113 A 2 Board Layout...