User guide
90 CY3687 MoBL-USB FX2LP18 Development Kit User Guide, Doc. # 001-68582 Rev. *B
MoBL-USB Development Kit Firmware Examples
Figure 8-19. AA/AB Vendor Command Operation using CyControlCenter
8.13 Debugging Using Keil Monitor Program
The Keil uVision2 IDE supplied with the kit enables user to debug the firmware examples provided
with the kit. Using Keil debug monitor program and UART port-SIO-1 on CY3687 MoBL-USB
FX2LP18 development board the firmware examples are debugged. Following is the procedure to
debug the firmware using Keil IDE.
1. The MoBL-USB FX2LP18 development board contains small EEPROM (U8) which is by default
programmed with 0xC2 image .It contains relevant VID/PID (0x04B4/0x0086) for 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 section Method to Download Firmware Image to
External I2C EEPROM on page 63 to download LP18_dvk.iic. The image is located at
<Installed_directory>\<Version>\Firmware\EEPROM Images.
2. Switch SW2-LG-SM SW2-SMALL EEPROM before downloading the image to small EEPROM-
U8.After download press RESET. Connect a UART cable between SIO-1 and Windows PC.
3. Follow the process outlined in section Binding Cypress USB Driver to MoBL-USB Development
Board on page 43 to bind CyMonfx2lp18 driver package at <Installed_directory>\<Version>\Driv-
ers\CyMonfx2lp18.The driver files for relevant Windows OS version of the Host PC can be cho-
sen respect to the above 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
4. Observe the green BKPT/monitor light D5 glowing GREEN on the development board. Observe
in the device manager the MoBL-USB FX2LP18 devices are listed as: “Cypress MoBL-USB
FX2LP18 Board Keil monitor(3.4.5.000)”
5. The MoBL-USB device re-enumerates with VID/PID - 0x04B4/0x0086
6. The Keil debug monitor (.hex) is already recorded in a script file -mon_i2c.spt. The procedure to
generate a script file for corresponding .hex file was explained in section 6.3.1. Sample monitor
.hex files are located at <Installed_directory>\<Version>\Target\Monitor. Following are sample
monitor files in the MoBL-USB FX2LP18 development kit.