EZ-USB Development Kit User Guide, Doc. # 001-66390 Rev. *D
97
EZ-USB Development Kit Firmware Examples
8.14
Debugging Using Keil Monitor Program
The Keil µVision2 IDE supplied with the kit enables you to debug the firmware example. Using the
Keil debug monitor program and UART ports (SIO-0 and SIO-1) on the EZ-USB development board,
the firmware examples are debugged. Following is the procedure to debug the firmware using Keil
IDE:
1. The EZ-USB small EEPROM is by default programmed with the 0xC0 image with relevant VID/
PID for the Keil debug monitor download. If the image does not exist due to programming any of
the images defined in previous sections, follow the process outlined in
ware Image to EZ-USB Internal RAM Memory on page 69
Image to External I2C EEPROM on page 69
to download the
FX2LP_C0.iic
for EZ-USB FX2LP
and the
FX1_C0.iic
image for EZ-USB FX1 located at
<Installed_directory>\<Ver-
sion>\Firmware\EEPROM Images
to small EEPROM.
2. Switch the SW1-SMALL EEPROM and SW2-EEPROM sides on the board.
3. Connect the USB A-to-B cable between the J1 connector and Windows PC Host controller. Con-
nect a UART cable between SIO-1 and Windows PC.
4. Follow the process outlined in
Binding Cypress USB Driver to EZ-USB Development Board on
to bind the CyMonfx1_fx2lp driver package at
<Installed_directory>\<Ver-
sion>\Drivers\CyMonfx1_fx2lp
.The driver files for the relevant Windows OS can be cho-
sen with respect to this path as follows:
a. Windows2000: w2k\x86
b. Windows XP(32-bit): wxp\x86
c. Windows XP(64-bit): wxp\x64
d. Windows-Vista(32-bit): wlh-vista\x86
e. Windows-Vista(64-bit): wlh-vista\x64
f. Windows-7(32-bit): wlh-win7\x86
g. Windows-7(64-bit): wlh-win7\x64
5. Observe the green BKPT/monitor light up on the development board. Note that in the device
manager, the EZ-USB devices are listed as:
a. EZ-USB FX1:
Cypress EZ-USB FX1 Board Keil monitor(3.4.5.000)
b. EZ-USB FX2LP:
Cypress EZ-USB FX2LP Board Keil monitor(3.4.5.000)
6. The EZ-USB device re-enumerates with VID/PID - 0x04B4/0x0082(FX2LP) and 0x04B4/
0x0083(FX1).
7. The Keil debug monitor (.hex) is previously recorded in a script file -
mon.spt
. The procedure to
generate a script file for the corresponding .hex file is explained in
Script Files (.spt) on page 47
. The sample monitor .hex files are located at
<Installed_directory>\<Version>\Target\Monitor
. Following are the sample moni-
tor files in the EZ-USB kit:
a.
mon-ext-sio0-c0.hex:
This Keil monitor file resides in the external memory of EZ-USB devel-
opment board. The Keil debug monitor communicates with Keil IDE through the SIO-0 UART
port at 38400 baud rate
b.
mon-ext-sio1-c0.hex:
The Keil monitor file resides in the external memory of EZ-USB devel-
opment board. The Keil debug monitor communicates with Keil IDE through SIO-1 UART port
at 38400 baud rate
c.
mon-ext-sio0-c0.spt:
This is script file equivalent of Keil debug monitor file mon-ext-sio0-
c0.hex.
d.
mon-ext-sio1-c0.spt:
This is script file equivalent of Keil debug monitor file mon-ext-sio1-
c0.hex.
Summary of Contents for CY3674
Page 18: ...18 EZ USB Development Kit User Guide Doc 001 66390 Rev D Getting Started...
Page 34: ...34 EZ USB Development Kit User Guide Doc 001 66390 Rev D Development Kit Contents...
Page 54: ...54 EZ USB Development Kit User Guide Doc 001 66390 Rev D Cypress USB Drivers for EZ USB Kits...
Page 110: ...110 EZ USB Development Kit User Guide Doc 001 66390 Rev D Resources...
Page 113: ...EZ USB Development Kit User Guide Doc 001 66390 Rev D 113 A 2 Board Layout...