EPXA1 Development Kit Getting Started 101 Innovation Drive San Jose, CA 95134 (408) 544-7000 http://www.altera.com UG-EPXA1-1.
Copyright EPXA1 Development Kit Getting Started User Guide Copyright © 2003 Altera Corporation. All rights reserved. Altera, The Programmable Solutions Company, the stylized Altera logo, specific device designations, and all other words and logos that are identified as trademarks and/or service marks are, unless noted otherwise, the trademarks and service marks of Altera Corporation in the U.S. and other countries. All other product or service names are the property of their respective holders.
About this User Guide This user guide provides comprehensive information about getting started with the Altera® Excalibur™ EPXA1 development kit. Table 1 shows the user guide revision history. Table 1. User Guide Revision History Date Description January 2003 Minor text edits. November 2002 Updates for Quartus® II version 2.2. September 2002 CD name change. August 2002 How to Find Information ■ ■ ■ ■ Altera Corporation Initial release.
About this User Guide How to Contact Altera EPXA1 Development Kit Getting Started User Guide For the most up-to-date information about Altera products, go to the Altera world-wide web site at http://www.altera.com. For technical support on this product, go to http://www.altera.com/mysupport. For additional information about Altera products, consult the sources shown in Table 2. Table 2. How to Contact Altera Information Type Technical support USA & Canada All Other Locations http://www.altera.
About this User Guide Typographic Conventions EPXA1 Development Kit Getting Started User Guide The EPXA1 Development Kit Getting Started User Guide uses the typographic conventions shown in Table 3. Table 3. Conventions Visual Cue Meaning Bold Type with Initial Capital Letters Command names, dialog box titles, checkbox options, and dialog box options are shown in bold, initial capital letters. Example: Save As dialog box.
EPXA1 Development Kit Getting Started User Guide vi Altera Corporation
Contents About this User Guide ............................................................................................................................... iii How to Find Information .............................................................................................................. iii How to Contact Altera .................................................................................................................. iv Typographic Conventions .............................................
Contents Installing the ByteBlaster Driver on a Windows 2000 System ................................................34 Confirming the Installation ..........................................................................................................
Getting Started Introduction f The EPXA1 development kit contains everything you need to develop complete embedded systems on a programmable chip. It contains the EPXA1 development board featuring the Excalibur™ EPXA1 device. For more details about the EPXA1 device, refer to the Excalibur Devices Hardware Reference Manual. The EPXA1 development kit also contains example reference designs.
EPXA1 Development Kit Getting Started User Guide 1 Getting Started The listed tools may not be included in the development kit, although they are required to run this example design; refer to the development kit contents list for the items included in the development kit. Excalibur Utilities The Excalibur utilities are applications required to start using the EPXA1 development board.
Getting Started EPXA1 Development Kit Getting Started User Guide EPXA1 Development Board The EPXA1 development board is a desktop development system. It provides a hardware platform to begin developing embedded systems. The development board provides a flexible and powerful environment for debugging your own designs. f For more details about the EPXA1 development board, refer to the Excalibur EPXA1 Development Board Hardware Reference Manual.
EPXA1 Development Kit Getting Started User Guide Getting Started Figure 1. HyperTerminal Window 1 If you need to re-load the EPXA1 Board Diagnostics program onto the board, the design is located on the Excalibur Device Applications CD-ROM. Design Overview The Hello World project includes a simple PLD design and an embedded software application. The PLD design consists of a memory-mapped slave peripheral that accepts 8-bit data. The data lights up corresponding LEDs on the EPXA1 development board.
Getting Started EPXA1 Development Kit Getting Started User Guide In this example, the compiler library functions printf() and scanf() interface to a terminal window by utilizing the fputc (send a character) and fgetc (receive a character) functions to use the EPXA1 stripe UART. Printf() is used for displaying characters to a terminal window and scanf() is used to receive characters from a terminal keyboard.
EPXA1 Development Kit Getting Started User Guide Getting Started Table 1 lists the design files in the archive. Table 1. Hello World Design Files File Description \arm_top.bdf Block diagram file for top-level design. \hello.csf Compiler settings file for top-level design that stores chips definitions, device options, compilation type, etc. \hello.
Getting Started Configure the Stripe EPXA1 Development Kit Getting Started User Guide The example design has been pre-built. To become familiar with the process, or to modify it for your own designs, perform the following steps to configure the stripe: 1. Run the Quartus II software. 2. Choose Open Project (File menu) and select the hello.quartus project file from either the ads or gnu directory, depending on the compiler you are using. 3. Choose Open (File menu) and select arm_top.
EPXA1 Development Kit Getting Started User Guide – – – – – External clock reference: 25 MHz Bypass PLL1: turn off Desired AHB1 frequency: 160 MHz AHB2 frequency: 80 MHz SDRAM Frequency: 133 MHz 1 8.
Getting Started EPXA1 Development Kit Getting Started User Guide 6. f Click the Configuration tab and choose Boot from Flash from the Configuration scheme drop-down list. Refer to the Configuration Logic section of the Excalibur Devices Hardware Reference Manual for more information on configuring the PLD. 7. Click the Unused Pins tab and select As inputs, tri-stated under Reserve all unused pins.
EPXA1 Development Kit Getting Started User Guide Getting Started 2. Under Category, expand Files & Directories and choose Toolset Directories. 3. Perform one of the following actions, depending on the software toolset you are using: – – 4. Click on GNUPro for ARM under Software toolset, and browse to the GNUPro executable directory \bin. Click on ADS Standard Tools under Software toolset and browse to the ADS executable directory \bin. Click OK.
Getting Started EPXA1 Development Kit Getting Started User Guide Debug Settings for GNUPro Follow the steps below to specify software build settings that generate the hello world software program with extra debug information. 1. Choose Settings (Assignments menu). 2. Under Category, expand Software Build Settings and choose General. 3. Choose Debug from the Current Software Build Settings dropdown list. 4. Choose CPU from the Software Build Settings list and specify the following: – – – – – – 5.
EPXA1 Development Kit Getting Started User Guide 6. Choose Assembler from the Software Build Settings list and specify the following: – – – – 7. Getting Started Additional include directories: type .
Getting Started EPXA1 Development Kit Getting Started User Guide Release Settings for GNUPro Follow the steps below to specify software build settings that will generate the hello world software program with optimization turned on. 1. Choose Settings (Assignments menu). 2. Under Category, expand Software Build Settings and choose General. 3. Choose Release from the Current Software Build settings dropdown list. 4. Click on CPU tab folder and specify the following: – – – – – – 5.
EPXA1 Development Kit Getting Started User Guide 7. Getting Started Choose Linker from the Software Build Settings list and specify the following: – Object/library modules: type %ALTERA_ARM9GP_ROOT%/%ALTERA_ARM9GP_VER%/%ALTERA_A RM9GP_HOST%/lib/gcc-lib/arm-elf/2.96%ALTERA_ARM9GP_VER%/crtbegin.o, %ALTERA_ARM9GP_ROOT%/%ALTERA_ARM9GP_VER%/%ALTER A_ARM9GP_HOST%/lib/gcc-lib/arm-elf/2.96%ALTERA_ARM9GP_VER%/crtend.
Getting Started EPXA1 Development Kit Getting Started User Guide 2. Under Category, expand Files & Directories and choose Add/Remove. 3. Browse to and add the following files: ..\common\main.c ..\common\uartcomm.c ..\common\irq.c ..\common\exceptions.c software\armc_startup.s software\retarget.c 4. Altera Corporation Click OK.
EPXA1 Development Kit Getting Started User Guide Getting Started Debug Settings for ADS Follow the steps below to specify software build settings that generate the software program with extra debug information. 1. Choose Settings (Assignments menu). 2. Under Category, expand Software Build Settings and choose General. 3. Choose Debug from the Current Software Build Settings dropdown list. 4. Choose CPU from the Software Build Settings list and specify the following settings: – – – – – – 5. 1 A .
Getting Started EPXA1 Development Kit Getting Started User Guide 7. Chosse Linker from the Software Build Settings list and specify the following settings: – – – – – Under Link type: select Simple Entry symbol name/address: turn on and type 0 Read-only base address: turn on and type 0 Read/write base address: turn on and type 0x20000 Command-line options: add -first armc_startup.o(init) 1 This command-line option sets section init in armc_startup.s to the reset vector address 0. 8.
EPXA1 Development Kit Getting Started User Guide – – – – 6. Additional include directories: type . Generate debug information: turn off Keep local symbols in symbol table: turn off Choose the Linker from the Software Build Settings list and specify the following: – – – – – Under Link type: select Simple Entry symbol name/address: turn on and type 0 Read-only base address: turn on and type 0 Read/write base address: turn on and type 0x20000 Command-line options: add -first armc_startup.o(init) 8.
Getting Started EPXA1 Development Kit Getting Started User Guide 1 Additional steps are required to use the SDRAM in boot-fromserial mode. The information is beyond the scope of this document, so to use boot-from-serial mode with the SDRAM, refer to AN141: Using the SDRAM Controller. Boot-from-Flash Mode Setting the BOOT_FLASH external pin to high puts the device in bootfrom-flash mode upon power up.
EPXA1 Development Kit Getting Started User Guide Getting Started Connections and Jumper Settings To set up the EPXA1 development board in boot-from-flash mode, perform the following steps: 1. Connect one end of the 25-pin parallel cable to the parallel port of the computer and the other end to the ByteBlasterMV download cable. 2. Connect the ByteBlasterMV download cable to the 10-pin JTAG header on the edge of the development board. 1 3.
Getting Started EPXA1 Development Kit Getting Started User Guide Altera Flash Programmer Altera provides a flash programming utility, which initially explores the development board, providing a listing of the setup and the JTAG configuration chain. It then downloads a small application into the EPXA1 device and probes the flash device to determine the required programming algorithm. After programming completes, the message Flash programmed successfully appears in the command prompt window.
EPXA1 Development Kit Getting Started User Guide Getting Started To set up AXD and run the application software, perform the following steps. 1. Start AXD by selecting Start > Programs > ARM Developer Suite > AXD Debugger (Start menu). 2. Click on Load Debug Symbols (File menu) in the AXD debugger window and browse to ads\debug\hello.elf. Click Open. 1 3. Select Configure Target (Options menu) in the AXD debugger window. 4.
Getting Started EPXA1 Development Kit Getting Started User Guide After successfully debugging the design using the debug settings version of the software, you can run the release settings version. GNUPro Insight Debugger The GNUPro Toolkit from Red Hat incorporates the Insight graphical debugger. The debugger interfaces with the GNU debugger stub provided by Altera in the Quartus II software, version 2.2 or later.
EPXA1 Development Kit Getting Started User Guide 9. Getting Started Click on Memory (View menu) to display the memory contents. After successfully debugging the design using the debug settings version of the software, you can run the release settings version.
EPXA1 Development Kit Getting Started User Guide 33 Altera Corporation
EPXA1 Development Kit Getting Started User Guide 34 Getting Started Altera Corporation
Appendix A— Installing the ByteBlaster Driver Introduction If you are using either Windows NT 4.0 or Windows 2000, the Altera ByteBlaster driver must be installed before you can configure the EPXA1 development board using the flash programmer. This section explains how to install the ByteBlaster driver from the qutilities directory, either for Windows NT 4.0 or Windows 2000, depending on which operating system you are using.
EPXA1 Development Kit Getting Started User Guide Installing the ByteBlaster Driver on a Windows 2000 System Follow the steps below to install the Altera ByteBlaster driver on a Windows 2000 system: 1. Open the control panel. 2. Select Add/Remove Hardware to start the Add/Remove Hardware Wizard and click Next to continue. 3. In the Choose a Hardware Task panel, select Add/Troubleshoot a device and click Next to continue.
EPXA1 Development Kit Getting Started User Guide 13. In the Completing the Add/Remove Hardware Wizard window, click Finish. A system dialog appears prompting a reboot so that the new settings can take effect. Confirming the Installation After the system is rebooted, follow the steps below to ensure the ByteBlaster driver is accessible: 1. Connect the ByteBlasterMV cable to the PC’s parallel port LPT1. 2. Open a command prompt window. 3. Type jtagconfigr at the command prompt. 4.
EPXA1 Development Kit Getting Started User Guide 36 Altera Corporation