User guide

82 CY3687 MoBL-USB FX2LP18 Development Kit User Guide, Doc. # 001-68582 Rev. *B
MoBL-USB Development Kit Firmware Examples
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.7.5 Testing the Bulkext Firmware Functionality
The example firmware should be tested in a similar manner as Bulkloop example using Cyconsole
or CyControlCenter.
8.8 EP_Interrupts Example
8.8.1 Description
The EP_interrupts example works in a similar manner as Bulkloop on MoBL-USB FX2LP18. The
major differences include addition of a 64-byte EP1 as Bulk OUT/IN endpoint to the existing list of 4
endpoints- EP2, EP4, EP6, and EP8.The endpoints are re-armed using their respective interrupt ser-
vice routines. Following are the interrupts for each of these endpoints which are used to schedule
the data transfers.
EP1-64 byte Bulk OUT/IN - ISR_Ep1in() and ISR_Ep1out()
EP2-512 byte Bulk OUT - ISR_Ep2inout()
EP4-512 byte Bulk IN - ISR_Ep4inout()
EP6-512 byte Bulk OUT - ISR_Ep6inout()
EP8-512 byte Bulk OUT - ISR_Ep8inout()
8.8.2 Building EP_Interrupts Firmware Example Code for MoBL-USB FX2LP Internal
RAM and EEPROM
Click on Build Target button at the top right corner of the IDE. The total Code bytes of
EP_Interrupts firmware example is less than 4k code limit Keil uVision2 IDE provided along with the
kit. The output of the Build Target is EP_Interrupts.hex and EP_Interrupts.iic files
8.8.3 Method to Program EP_Interrupts 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 EP_Interrupts.hex to RAM memory and EP_Interrupts.iic to Large
EEPROM using Cyconsole/CyControlCenter.The EP_Interrupts.hex and EP_Interrupts.iic files
are located at <Installed_directory>\<Version>\Firmware\EP_Interrupts. After downloading, the firm-
ware re-enumerates with PC using its internal VID/PID-0x04B4/0x1004.
8.8.4 Binding Cypress USB Driver for the Downloaded Firmware Image
The EP_Interrupts 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 Bind-
ing 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.