Application Note
32 of 42
001-65209 Rev.*I
2021-03-19
Getting Started with FX2LP™
Appendix A: FX2LP Development Kit (DVK)
speed devices. The USB Frameworks simplify and accelerates custom firmware development by using Cypress
code for common operations, such as FX2LP chip initialization, USB standard device request handling, and USB
suspend-resume power management. USB Firmware Frameworks also provides function hooks and firmware
examples, easing the firmware development process. You can write the USB descriptor table and code to
implement the desired functionality without worrying about low-level USB details.
After installing the
CY3684EZ-USB FX2LP Development Kit
the firmware directory contains the examples
shown in
. These examples can be used as a reference or used as the basis for custom FX2LP-based
products.
Table 4
Description of FX2LP Firmware Examples
S.No Firmware
Example
Description
1
hid_kb
Emulates a HID-class keyboard using the buttons and 7-segment display on the DVK
board.
2
Bulkloop
A bulk loopback test that exercises the EZ-USB bulk endpoints. It loops back EP2OUT to
EP6IN and EP4OUT to EP8IN, and updates Development Board indicators.
3
Bulkext
A bulk loopback test that uses external RAM. Data is copied from an OUT endpoint buffer
to external RAM on the DVK board and then back to the IN endpoint buffer. It loops back
EP2OUT to EP6IN and EP4OUT to EP8IN.
4
Bulksrc
Endless providers and consumers of BULK data for testing. It can be driven using the
CyConsole or CyBulk. EP2OUT and EP4OUT accept all BULK packets. EP6IN always
returns a 512-byte packet when operating at Hi-Speed and 64 bytes when operating at
Full Speed. Based on buffer availability in EP8IN, the most recent packet of EP4OUT is
written to EP8IN.
5
dev_io
Source files to build simple development board I/O sample. This software demonstrates
how to use the buttons and LEDs on the EZ-USB development kit.
6
EP_Interru
pts
Bulk loopback firmware using endpoint interrupts.
7
extr_intr
External interrupt handling using INT0, INT1, INT4, INT5, and INT6.
8
ibn
Bulk loopback of EP2OUT to EP6IN and EP4OUT to EP8IN using the IBN (In Bulk NAK)
interrupt to initiate the transfer.
9
LEDCycle
Use of the general-purpose indicator LEDs (D2, D3, D4, D5) on the DVK.
10
Pingnak
Bulk loopback of EP2OUT to EP6IN andEP4OUT to EP8IN using the PING NAK interrupt to
initiate the transfer.
11
iMemtest
Tests on-chip RAM.
12
vend_ax
Shows how to implement vendor-specific commands.
USB Firmware Frameworks uses the EZ-USB library (EZUSB.LIB), which implements functions that are common
to many firmware projects. These functions need not be modified and are, therefore, provided in library form.
However, the kit includes the source code for the library in the event that you need to modify a function or if
you just want to know how something is done. Detailed information about the EZ-USB library (section 5.4) and
firmware framework (chapter 5) is available in the ‘
’. This library is included in DVK
under the ‘Target
\Lib\
LP’ folder. To help custome
rs design their applications faster with a wide range of
Cypress Hi-Speed products, a comprehensive list of all
other USB High-Speed Devices, Kits, SDKs, Application Notes and Reference Designs are available below.