background image

CYUSB3KIT-001 EZ-USB FX3 Development Kit Guide, Doc. #: 001-70237 Rev. *C

11

Getting Started

4. When installation completes you have the option to run the Cypress Update Manager

(

Figure 2-4

), to insure you have the latest SDK. Click the 

Check for Updates

 button at the

bottom of the 

Cypress Update Manager

 window. If 

No Updates 

appears against 

EZ-USB FX3

SDK

 you can click 

Exit 

button. If there are updates, click the 

Update

 button to download and

install the latest SDK.

Note:

 You can launch the Update Manager from the 

Windows > Start > All Programs >

Cypress

 menu.

Figure 2-4.  Cypress Update Manager 

5. The installation creates two directories in the Program Files directory (Program Files (x86) for

Windows 64-bit Operating System):

a.

Cypress\EZ-USB FX3 Development Kit

 contains documentation such as release notes,

hardware files, schematics and PC layout files. 

b.

Cypress\EZ-USB FX3 SDK

 contains the Cypress USBSuite tools, including Eclipse, and sev-

eral utilities such as the USB Control Center in the bin directory (

CyControl.exe

). It also con-

tains many Cypress firmware examples. The next section shows how to import these
examples into Eclipse projects.

 

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Summary of Contents for EZ-USB FX3 CYUSB3KIT-001

Page 1: ...Z USB FX3 Development Kit Guide Doc 001 70237 Rev C Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 1 800 858 1810 Phone Intnl 1 408 943 2600 http www cypress com Downloaded...

Page 2: ...sion of Cypress Disclaimer CYPRESS MAKES NO WARRANTY OF ANY KIND EXPRESS OR IMPLIED WITH REGARD TO THIS MATE RIAL INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR...

Page 3: ...Example 1 Blinking LED and push button 18 2 6 1 FX3 Firmware Download and Debug Methods 20 2 6 2 Code Structure 33 2 7 Importing All of the Cypress Examples 34 3 Kit Operation 35 3 1 Default Jumper S...

Page 4: ...erconnecting to the GPIF II Connector 73 4 4 2 FX3 DVK Interconnect Boards 76 4 5 Reset Circuit 76 4 6 Serial Interfaces 77 4 6 1 I2C Interface 77 4 6 2 I2S 77 4 6 3 SPI and UART 77 4 6 4 JTAG 80 A Ap...

Page 5: ...wing Development kit board USB 3 0 A to Micro B cable Quick Start Guide 5 V AC DC adapter Visit http www cypress com shop for more information Inspect the contents of the kit If any parts are missing...

Page 6: ...11 Added Figure 2 12 B 12 22 2012 NMMA Updated Getting Started chapter Added the Hardware chapter Added the Appendix chapter C 03 30 2014 RSKV Explained three firmware example projects Added informati...

Page 7: ...Collection GDB GNU Debugger GPIF General Programmable Interface GPIO General Purpose Input Output HSMC High Speed Mezzanine Card I2 C Inter integrated circuit I2S Inter IC Sound IDE Integrated Develop...

Page 8: ...follow these steps 1 Download the latest FX3 DVK software from EZ USB FX3 Development Kit page which contains the kit hardware files Kit documents FX3 manuals guides and SDK for Windows and Linux If...

Page 9: ...ation Wizard Figure 2 2 For the first time installation it is recommended to Installation Type as Typical Figure 2 2 Installation Wizard Downloaded from Arrow com Downloaded from Arrow com Downloaded...

Page 10: ...xt and wait till the installation is complete Figure 2 3 Installation Progress Showing Individual Modules Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Page 11: ...two directories in the Program Files directory Program Files x86 for Windows 64 bit Operating System a Cypress EZ USB FX3 Development Kit contains documentation such as release notes hardware files sc...

Page 12: ...h contains Windows and Linux downloads If your browser does not ask to run the downloaded file locate the FX3SDKSetup exe file in your download folder and double click it to start the Installer Figure...

Page 13: ...n a Linux platform The EZ USB FX3 SDK for Linux is released in the form of a gzipped tar archive called FX3_SDK tar gz On extraction this tar archive contains the following gzipped tar archives FX3_Fi...

Page 14: ...esktop shortcut by right clicking EZ USB Suite dragging it to the desktop releasing the mouse button and selecting Create shortcuts here This launches a first time startup screen that sets up a worksp...

Page 15: ...s Program Files x86 Later in this chapter you will import all of the Cypress examples into your Workbench but first it is helpful to learn how an Eclipse project is imported from anywhere for example...

Page 16: ...nish button Figure 2 10 Browse to the Project Folder 4 The added project now appears in the Eclipse Project Explorer Double click it to see the underlying components Figure 2 11 Double click the first...

Page 17: ...o so If you forget to save a file after editing it before a re compile and wonder why your edits did not take you will want to have Eclipse automatically save your edits before building the project Na...

Page 18: ...der is a convenient way to build this circuit as shown in Figure 2 15 J34 is at the top center of the PCB red highlight Figure 2 14 Circuit to test the FX3_First_App code Downloaded from Arrow com Dow...

Page 19: ...reen rectangle in Figure 2 15 Adjacent jumpers J103 and J104 should short pins 1 2 to connect the RXD and TXD UART signals to the DB 9 connector Jumper J53 just above the power switch yellow rectangle...

Page 20: ...he board to the UP position This sup plies board power from USB eliminating the need for an external power unit 3 The board enumerates as a Cypress BootLoader as seen in the Device Manager tree Figure...

Page 21: ...ill see the new device name appear in place of the Cypress USB BootLoader device You should see the LED blinking with a 2 second period If an LED is not connected to GPIO 54 then you can see the outpu...

Page 22: ...o the PC and then start Tera Term A serial device must be plugged into the PC before starting Tera Term to be recognized 2 Select the Serial option and the adapter COM port as shown in Figure 2 20 Fig...

Page 23: ...bserved by connecting this GPIO to ground using a jumper wire Figure 2 22 FX3 Sending Debug Messages FX3 firmware sends serial debug messages using the CyU3PDebugPrint function for example for the sig...

Page 24: ...t US 60 Segger provides a download that includes J Link GDB Server accessible at Start All Programs SEGGER J Link ARM Vxxxx Figure 2 24 If you want to create a desktop shortcut right click the item dr...

Page 25: ...re 2 26 J Link GDB Server Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Ar...

Page 26: ...t New to define a debug configuration Figure 2 28 Figure 2 28 Create a new Debug Configuration Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com D...

Page 27: ...ow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded...

Page 28: ...ow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded...

Page 29: ...emU32 0x4000000C 0xEE090F11 Change the FX3 SYSCLK setting based on input clock frequency Update with correct value from list below Clock input is 19 2 MHz Value 0x00080015 Clock input is 26 0 MHz Valu...

Page 30: ...Eclipse Perspective Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow co...

Page 31: ...Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Download...

Page 32: ...er Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Page 33: ...t Service Routine Serial debug messages cannot be printed from the GPIO callback as it runs in the interrupt context All interrupts compete for CPU attention and there may be more important tasks at h...

Page 34: ...ual project select it in the Project Explorer window The project name is highlighted so you can tell at a glance which project you are editing building and debugging Downloaded from Arrow com Download...

Page 35: ...3 1 and 6 VBATT 2 5 V 13 J96 and SW25 2 and 3 a PMODE0 Pin state ON OFF selection using SW25 b SW25 1 should be OFF USB boot 14 J97 and SW25 2 and 3 a PMODE0 Pin state ON OFF selection using SW25 b SW...

Page 36: ...d from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com D...

Page 37: ...aded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow co...

Page 38: ...oaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow c...

Page 39: ...wnloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arro...

Page 40: ...ow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded...

Page 41: ...from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Do...

Page 42: ...97 2 SW25 2 Don t care the switch can be either turned ON or OFF 1 1 Short pins 2 3 of jumper J97 2 SW25 2 set to OFF 0 1 Short pins 2 3 of jumper J97 2 SW25 2 set to ON PMODE0 Z 1 No jumper installed...

Page 43: ...he switch can be either turned ON or OFF PMODE1 1 1 Short pins 2 3 of jumper J97 2 SW25 2 set to OFF PMODE0 1 1 Short pins 2 3 of jumper J96 2 SW25 1 set to OFF Downloaded from Arrow com Downloaded fr...

Page 44: ...Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Download...

Page 45: ...in State Jumper and Dip Switch Combination PMODE2 Z 1 No jumper installed on J98 2 SW25 3 Don t care the switch can be either turned ON or OFF PMODE1 1 1 Short pins 2 3 of jumper J97 2 SW25 2 set to O...

Page 46: ...firmware binary as shown in Figure 3 15 9 The bottom left corner of the window displays Programming of I2C E2PROM in Progress as shown in Figure 3 16 Downloaded from Arrow com Downloaded from Arrow c...

Page 47: ...Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from A...

Page 48: ...the switch can be either turned ON or OFF PMODE1 1 1 Short pins 2 3 of jumper J97 2 SW25 2 set to OFF PMODE0 Z 1 No jumper installed on J96 2 SW25 1 Don t care the switch can be either turned ON or O...

Page 49: ...nloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow...

Page 50: ...mper J97 2 SW25 2 set to OFF PMODE0 1 1 Short pins 2 3 of jumper J96 2 SW25 1 set to OFF Table 3 8 SPI Mode Jumper Settings Sl No Pin Description Jumper Position 1 J101 SPI_CLK 2 3 2 J102 SPI_SSN 2 3...

Page 51: ...om Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Page 52: ...ow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded...

Page 53: ...wnloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arro...

Page 54: ...aded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow co...

Page 55: ...eration 4 Take the following steps to verify the Bulkloop operation using the USB Control Center application Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded fr...

Page 56: ...row com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded...

Page 57: ...m Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Page 58: ...w com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded f...

Page 59: ...ded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com...

Page 60: ...om Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Page 61: ...oaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow c...

Page 62: ...Windows Device Manager the board appears as Cypress USB StreamerExample under Universal Bus Controllers If the board is not listed bind the driver manually using the steps outlined in the section Man...

Page 63: ...Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from A...

Page 64: ...nloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow...

Page 65: ...V 3 4 labeled V3P3 on board 3 3 V Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded...

Page 66: ...49 0 1uF C49 0 1uF L2 BLM21PG221SN1D L2 BLM21PG221SN1D U9 ESD Protector PART_NUMBER SP3010 04UTG Manufacturer Littlefuse U9 ESD Protector PART_NUMBER SP3010 04UTG Manufacturer Littlefuse 8 8 7 7 6 6 5...

Page 67: ..._100mil J47 HEADER2_100mil 2 1 C47 4 7uF C47 4 7uF U8 PART_NUMBER MAX1823BEUB T Manufacturer MAXIM U8 PART_NUMBER MAX1823BEUB T Manufacturer MAXIM IN 3 INA 2 INB 4 FAULTA_L 10 FAULTB_L 6 GND 8 OUTA 9...

Page 68: ...Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloa...

Page 69: ...ed from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com...

Page 70: ...com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded fr...

Page 71: ...1 2 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded fro...

Page 72: ...Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloa...

Page 73: ...or J77 Pin No FX3 Signals GPI O CTL4_SW CTL4_LT CTL4 3 J100 J100 1 2 3 Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com...

Page 74: ...from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Do...

Page 75: ...com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded fr...

Page 76: ...T_NUMBER EVQPAC07K Manufacturer Panasonic SW8 PBSwitch PART_NUMBER EVQPAC07K Manufacturer Panasonic A1 B1 A2 B2 R10 10K R0402 R10 10K R0402 R63 100K R63 100K J72 HEADER_1x3_100mil J72 HEADER_1x3_100mi...

Page 77: ...3 GND 4 WP 7 SCL 6 SDA 5 VCC 8 R111 0 R0402 R111 0 R0402 R110 10K R110 10K R262 10K R262 10K C212 0 1uF C212 0 1uF C197 0 01uF C197 0 01uF R263 10K R263 10K Downloaded from Arrow com Downloaded from...

Page 78: ...oaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow c...

Page 79: ...rom Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Down...

Page 80: ...Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Download...

Page 81: ...w com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded f...

Page 82: ...rrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloade...

Page 83: ...wnloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arro...

Page 84: ...pull up resistors R246 and R252 on the MISO and MOSI lines of the SPI Remove these pull up resistors and retry the booting sequence FX3 DVK boards earlier than REV 03 do not support SPI boot Download...

Page 85: ...ded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com...

Page 86: ...ownloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arr...

Page 87: ...m Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from...

Reviews: