Projects/usbCypress/Cypress Test

From UIT
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{TOC right}} = Test Cypress firmware and driver = View doc: <code>C:\Cypress\USB\doc\General\!CyConsole.pdf</code> == Install Cypress driver == Connect the USB board to the...")
 
m
 
Line 8: Line 8:
  
 
You are asked to install the drivers.
 
You are asked to install the drivers.
 +
 
Select the default drivers: they have been installed when installing the Cypress tools.
 
Select the default drivers: they have been installed when installing the Cypress tools.
  
 
Launch <code>CyConsole</code>.
 
Launch <code>CyConsole</code>.
 +
 
The tab "Device Properties" shows you the Cypress Vendor Id and the Device Id of the EEPROM-less chip.
 
The tab "Device Properties" shows you the Cypress Vendor Id and the Device Id of the EEPROM-less chip.
  
Line 25: Line 27:
  
 
The firmware gets downloaded and Windows finds a new hardware.
 
The firmware gets downloaded and Windows finds a new hardware.
 +
 
Install from your <code>loopback.inf</code> file.
 
Install from your <code>loopback.inf</code> file.
  

Latest revision as of 11:55, 11 June 2012

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