User guide
CY3687 MoBL-USB FX2LP18 Development Kit User Guide, Doc. # 001-68582 Rev. *B 79
MoBL-USB Development Kit Firmware Examples
SYNCDELAY; //
EP8BCH = MSB(myBufferCount);
SYNCDELAY; //
EP8BCL = LSB(myBufferCount); // arm EP8IN
}
8.6.2 Building Bulksrc Firmware Example Code for MoBL-USB FX2LP18 Internal RAM
Memory and EEPROM
Click on Build Target button at the top right corner of the IDE. The total Code bytes of Bulksrc firm-
ware example is less than 4k code limit Keil uVision2 IDE provided along with the kit. The output of
the Build Target is bulksrc.hex and bulksrc.iic files
8.6.3 Method to Download Bulksrc Firmware Image to MoBL-USB FX2LP18 Internal
RAM and EEPROM
Refer to section Method to Download Firmware Image to MoBL-USB Internal RAM Memory on
page 62 and Method to Download Firmware Image to External I2C EEPROM on page 63 and follow
similar procedure to download bulksrc.hex to RAM memory and bulksrc.iic to Large EEPROM
using Cyconsole/CyControlCenter.The bulksrc.hex and bulksrc.iic files are located at
<Installed_directory>\<Version>\Firmware\Bulksrc. After downloading, the firmware re-enumerates
with 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 Cypress generic USB driver cyusb.sys and driver information file cyusbfx2lp18.inf, which
contains the relevant VID/PID of this example. Follow the procedure outlined in section Binding
Cypress USB Driver to MoBL-USB Development Board on page 43 to manually bind the driver using
Windows Hardware Wizard. If the binding process is performed for anyone of the previous firmware
examples the process can be skipped for this example.
8.6.5 Testing the Bulksrc Firmware Functionality
The Bulksrc firmware functionality can be tested using Cyconsole Utility. Following are the steps
■ Open Cyconsole PC application from Windows Start->All Programs->Cypress->Cypress Suit-
eUSB 3.4.7->Cyconsole.
■ Click on Options->EZ-USB Interface. This will pop-up EZ-USB Interface Window. Select EP2
OUT as pipe and enter length as 512 bytes. Enter sample data as 0x5.Observe the constant pat-
tern 0x5 displayed on the EZ-USB window. Select EP6 IN endpoint with 512 byte length and click
on BulkTrans button and observe the data with incremental pattern starting with 0x2.