Xilinx UG133 Loading the CalculatorApp Software Application, Running the CalculatorApp program

Page 14

Downloading the Design and Launching XPS

R

Figure 2-3:Software Selection when FPGA is Configured

Loading the “Calculator_App” Software Application

To configure the hardware system and to load the software application into the Spartan-3 Evaluation Board using the Digilent JTAG3 cable, perform the following steps:

1.Connect the Digilent JTAG3 cable to the J7 header on the Spartan-3 Evaluation Board and connect the other end to the parallel port of the PC. If using the Parallel Cable IV, make sure that the ‘status’ light is lit on the cable.

2.Connect the Serial cable to J2 on the Spartan-3 Evaluation Board and to the serial port of the PC. On the PC, using hyperterminal, make certain that the bit rate is set for 57600 bps on the serial port.

3.Turn on the power on to the Spartan-3 Evaluation Board.

4.In XPS, to make sure that the ELF file is up to date, use “Tools>Update Bitstream”. There may be a warning “Processor microblaze_0 has XMDSTUB-mode application, but xmdstub.elf is not marked for download, do you want to continue?” Click ‘YES’

5.In XPS, select “Tools>Download” to download the new bitstream into the FPGA. The xmd-stub warning will appear again. Please click ‘YES’.

Note: Close all other XMD and GDB windows prior to downloading a configuration bits.

Running the Calculator_App program

After the Calculator_App has been loaded, the hyperterminal should show:

Simple Calculator App for Spartan-3 Starter Kit

Push button to start math operation...

MicroBlaze Microcontroller Ref Des User Guide

www.xilinx.com

7

UG133 January 7, 2005

Image 14
Contents MicroBlaze Microcontroller Reference Design User Guide UG133 v1.3.1 January 7MicroBlaze Microcontroller Ref Des User Guide Version Revision Microcontroller Reference Design Overview Guide Contents IntroductionTypographical Additional ResourcesConventions Online Document Conventions Meaning or Use ExampleMicrocontroller Reference Design Overview Reference Design Building Blocks Reference Design Building BlocksApplication Features FeaturesSystem Requirements Getting StartedDownloading the Design and Launching XPS Downloading the Reference DesignsUpdating and Generation Hardware Files Downloading the Design and Launching XPSDownloading Design Files to the Fpga Right click on Project CalculatorAppLoading the CalculatorApp Software Application Running the CalculatorApp programUpdating and Generation Hardware Files 4Software Selection with a Boot loader Loading the microblaze0xmdstub Software ApplicationLoading the TestApp Software Application with Xmdstub 5Target Selection for Software DebuggerAdditional MicroBlaze and EDK Information Additional MicroBlaze and EDK InformationLoading the CalculatorApp Software Application with Xmdstub