Application Note
20 of 42
001-65209 Rev.*I
2021-03-19
Getting Started with FX2LP™
FX2LP Development Tools
Figure 20
Bulkloop_VCS Window
Before using this application, use the USB Control Center to load the
bulkloop.hex
file as described in the
previous section. Be sure to press the FX2LP Development Kit RESET button first to enable the FX2LP
bootloader by keeping the “EEPROM ENABLE” switch in “NO EEPROM” position.
5.3
FX2LP Firmware Development
This section explains the steps involved in generating the
bulkloop.hex
file.
5.3.1
Keil uVision2
The Cypress FX2LP DVK includes a free demonstration version of the Keil uVision2 tools for the 8051. This IDE is
fully featured, but limited in code size to 4096 bytes. Cypress demo projects, such as
bulkloop.uv2,
fit under
this limit so you can study and modify the code. Larger projects require purchasing the full uVision2 toolset
from Keil.
5.3.2
Cypress USB Firmware Frameworks
In conjunction with the Keil tools, Cypress provides a set of files called the USB Firmware Frameworks to handle
low-level USB details. This approach allows you to concentrate development time on your specific application
code.
When you open the
bulkloop.uv2
project, you see the following project files:
Figure 21
bulkloop.uv2 Project Files
•
fw.c
is the Cypress USB Firmware Frameworks.
For more information on firmware frameworks, refer to Chapter 5 in
FX2LP Development Kit User Guide.pdf
•
bulkloop.c
is your application. Other Cypress examples may call this code module
peripheral.c
; it is a good
idea to rename it for your specific project name.