Projects/usbCypress/Cypress Test

From UIT
Jump to: navigation, search

Contents

Test Cypress firmware and driver

View doc: C:\Cypress\USB\doc\General\!CyConsole.pdf

Install Cypress driver

Connect the USB board to the PC.

You are asked to install the drivers.

Select the default drivers: they have been installed when installing the Cypress tools.

Launch CyConsole.

The tab "Device Properties" shows you the Cypress Vendor Id and the Device Id of the EEPROM-less chip.

Launch usbview. The list should show a Cypress EZ-USB device.


Install custom driver

  • Launch CyConsole
    • Choose Options -> EZ-USB Interface
      • Click !SelectMon and select loopback.hex
      • Click Load Mon

The firmware gets downloaded and Windows finds a new hardware.

Install from your loopback.inf file.


Uninstall custom driver

Login as administrator

Launch CyConsole and upload the firmware

  • Right-click on My Computer -> Properties
    • Choose tab Hardware -> button Device Manager
      • Open the group Universal Serial Bus controllers
      • Right-click on the custom device -> Uninstall

Test firmware

Loopback firmware

At this point, the firmware should be load in the Cypress EZ-USB.

Launch CyConsole. The tab Device Properties lets you check that your firmware is running.

Open the tab Other Endpt Xfers

  • Select Endpoint 0x02 (Out)
  • Type 01 02 03 04 in the field Hex Bytes to Send
  • Type 10 in the field Bytes of Data
  • Click Transfer Data

The console shows

  • Bulk OUT Transfer
  • 0000 01 02 03 04 00 00 00 00 00 00
  • Bulk OUT complete

Read data back

  • Select Endpoint 0x86 (In)
  • Type 10 in the field Bytes of Data
  • Click Transfer Data

The console shows

  • Bulk IN Transfer
  • 0000 01 02 03 04 00 00 00 00 00 00
  • Bulk IN complete

You can try the same from Endpoint 4 to Endpoint 8

USB works with packets and an end of packet delimiter. Reading more bytes than what was sent is not a problem, only the bytes written are given back. But reading less bytes than what was set doesn't work.

Personal tools
Namespaces
Variants
Actions
Navigation
Browse
Toolbox