Xilinx UG133 manual Loading the TestApp Software Application with Xmdstub

Page 17

Selecting a Software Application to be Loaded with a BOOT Loader after the FPGA is

R

4.In XPS, to make sure that the ELF file is up to date, please “Tools>Update Bitstream”.

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

5.In XPS, select “Tools>Download” to download the hardware configuration and load xmdstub into the BRAM memory.

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

6.In XPS, select “Tools>XMD” to open an XMD utility.

XMD is a JTAG utility that can be used to download and debug software. XMD is also a server for GDB, the GNU debugging utility.

Loading the “TestApp” Software Application with XMD_STUB

1.In XPS, select “Tools>Software Debugger” to open the GDB interface (Source Window).

2.Choose TestApp from the User Application window.

3.In GDB, select the “File>Target Settings” to display the Target Selection dialog box as shown in Figure 2-3.

4.Configure the Target Selection dialog box to match Figure 2-3, then click OK.

5.In Source Window>Run, click RUN, This will download the executable.elf file located at TestApp directory into the device.

6.In Source Window, the user can select Continue, Single Step, Set Break Point, and view source code, registers and memory contents.

7.From Control Tag, select “Continue”.

If the Spartan-3 Evaluation Board executes the application test program properly, you will see flashing LEDs on the board in the Hyper Terminal (57600bps, 8N1).

Note: Begin from step 2 to configure the device prior to loading a new application program and debugging. Make certain to close all XMD and GDB windows.

Figure 2-5:Target Selection for Software Debugger

MicroBlaze Microcontroller Ref Des User Guide

www.xilinx.com

10

UG133 January 7, 2005

Image 17
Contents UG133 v1.3.1 January 7 MicroBlaze Microcontroller Reference Design User GuideMicroBlaze Microcontroller Ref Des User Guide Version Revision Microcontroller Reference Design Overview Introduction Guide ContentsTypographical Additional ResourcesConventions Conventions Meaning or Use Example Online DocumentMicrocontroller Reference Design Overview Reference Design Building Blocks Reference Design Building BlocksApplication Features FeaturesDownloading the Design and Launching XPS Getting StartedSystem Requirements Downloading the Reference DesignsDownloading the Design and Launching XPS Updating and Generation Hardware FilesRight click on Project CalculatorApp Downloading Design Files to the FpgaRunning the CalculatorApp program Loading the CalculatorApp Software ApplicationUpdating and Generation Hardware Files Loading the microblaze0xmdstub Software Application 4Software Selection with a Boot loader5Target Selection for Software Debugger Loading the TestApp Software Application with XmdstubAdditional MicroBlaze and EDK Information Additional MicroBlaze and EDK InformationLoading the CalculatorApp Software Application with Xmdstub