User guide

CY3687 MoBL-USB FX2LP18 Development Kit User Guide, Doc. # 001-68582 Rev. *B 59
8. MoBL-USB Development Kit Firmware Examples
This chapter explains in detail about firmware example and how to test each firmware example pro-
vided with the kit. The MoBL-USB FX2LP18 contain common set of firmware examples to demon-
strate the MoBL-USB FX2LP18 capabilities along with the various components on board (Seven
segment LED, Push button, RAM memory, EEPROM, and so on). It also explains how to debug a
firmware example using Keil uVision2 IDE.Following are the firmware examples provided with the kit
along with their brief description.
Note: All the above Firmware examples except hid_kb use common VId/PID-0x04B4/0x1004. The
hid_kb project uses VId/PID-0x04B4/0x1005.
Table 8-1. List of Firmware Example in MoBL-USB FX2LP18 Development Kit
S.No
Firmware
Example
Description
1 hid_kb
Example firmware that emulates a HID-class keyboard using the buttons and
7-segment display on the DVK board
2 Bulkloop
Contains a bulk loopback test that exercises the MoBL-USB FX2LP18 bulk
endpoints. It loops back EP2OUT to EP6IN and EP4OUT to EP8IN
3Bulkext
Contains a bulk loopback test that exercises the MoBL-USB FX2LP18 bulk
endpoints. The loopback is performed using the external auto pointer. Data is
copied from the OUT endpoint buffer to external RAM and then to the IN end-
point buffer. It loops back EP2OUT to EP6IN and EP4OUT to EP8IN
4 Bulksrc
Contains bulk endpoint endless source/sink firmware. It can be driven using
the CyConsole or CyBulk. EP2OUT always accepts a bulk OUT; EP4OUT
always accept a bulk OUT; EP6IN always returns a 512-byte packet, 64 bytes
at full-speed. Based on buffer availability in EP8IN, the most recent packet of
EP4OUT is written to EP8IN.
5 dev_io
Contains the source files to build simple development board I/O sample. This
software demonstrates how to use the buttons and LED on the MoBL-USB
FX2LP18 development kit.
6 EP_Interrupts
Bulk loopback firmware that demonstrates use of endpoint interrupts using
MoBL-USB FX2LP18.
7extr_intr
Firmware that demonstrates external interrupt handling- INT0, INT1, INT4,
INT5 and INT6.
8Ibn
Contains firmware to perform bulk loopback of EP2OUT to EP6IN and
EP4OUT to EP8IN using the IBN (In Bulk Nak) interrupt to initiate the transfer.
9 Pingnak
Contains firmware to perform bulk loopback of EP2OUT to EP6IN and
EP4OUT to EP8IN using the PING NAK interrupt to initiate the transfer
10 iMemtest The firmware example tests on-chip RAM
11 vend_ax
Contains the source files to build a vendor specific command sample. This
example demonstrates how to implement different vendor commands