background image

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

48

Kit Operation

3.7.2

Booting from I

2

C EEPROM

Change the PMODE pins on the DVK board to Z1Z to enable I2C boot. On the DVK board, this is
done by configuring the jumpers and switches, as shown in 

Table 3-6

. Press RESET button SW8.

The FX3 DVK board re-enumerates with the boot image in the I

2

C EEPROM.

3.7.3

Choosing the Correct I

2

C EEPROM Configuration

Before mounting the I

2

C EEPROM into the U44 socket, you need to consider the following factors to

select the correctly configured EEPROM for the respective size of the firmware image.

Verify that the I

2

C EEPROM can accommodate the firmware image built in Release mode. Check

the addressing (A0, A1, and A2) mechanism for the EEPROM part and select these pins on
board using SW40. Follow the steps to decide on the addressing mechanism for the different
EEPROM configurations.

The typical EEPROM pins consists of A0, A1, and A2 address lines. FX3 can address eight
EEPROM (000–111). The address selection can be done using dip switch SW40.

Figure 3-17.  EEPROM Block Diagram

Table 3-6.   I2C Boot Jumper and Dip Switch Settings

PMODE )in 

Required PMODE Pin 

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 OFF

PMODE0

Z

1. No jumper installed on J96 

2. SW25.1 – Don't care (the switch can be either turned ON or OFF)

 

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.

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.

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.

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.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Содержание EZ-USB FX3 CYUSB3KIT-001

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: