GNUPro Insight Debugger. Altera Excalibur EPXA1


Add to my manuals
38 Pages

advertisement

GNUPro Insight Debugger. Altera Excalibur EPXA1 | Manualzz

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 Alternatively, click on Launch Debugger (Processing menu) in the Quartus II software window to perform steps

1

and

2 above automatically.

3.

Select Configure Target (Options menu) in the AXD debugger window.

4.

If Altera-RDI is listed as a target, click it to highlight it, then click OK to connect to the embedded processor. If Altera-RDI is not listed as a target, you must add it, by performing the following steps: a.

Click Add in the Choose Target window.

b.

Browse to the directory in which the Quartus II software is installed.

c.

Navigate to the <Quartus Installation Directory>\bin directory.

d.

Select Altera-RDI.dll. Click Open.

e.

Click on Altera-RDI in the Choose Target window; click OK to connect to the embedded processor.

5.

Choose Step (Execute menu) in the AXD debugger window to execute the first assembly instruction.

6.

Click on Go (Execute menu) in the AXD debugger window to run the application software continuously until it hits the breakpoint automatically set at function main().

7.

Click on Registers (Processor Views menu) to display the processor registers.

1 Right-click on an instruction’s line number and choose

Toggle Breakpoint to set or clear a breakpoint.

8.

Click on Memory (Processor Views menu) and type an address to display the memory contents.

30 Altera Corporation

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. The

Altera-supplied stub runs on a host PC and debugs the code running on the Excalibur device using the JTAG debug module.

f

Refer to the GNUPro Insight debugger manual for more information on the debug commands.

The following steps explain how to set up the GNUPro Insight debugger and run the application software:

1.

In a Command Prompt window, start up the GNU debugger stub by typing:

<Quartus Installation Directory>\bin\gdbstub

2.

Execute <GNUPro Tools installation directory>\bin\arm-elf-gdb.exe to start Insight.

3.

Click on Open (File menu) in the Insight debugger and browse to gnu\debug\hello.elf

.

4.

Choose Connect To Target (Run menu) in the Insight Debugger window and specify the following in the dialog box:

– Target: Remote/TCP

– Port: 9999

– Ensure that Download Program under More Options is not selected.

5.

Set a breakpoint by right-clicking on the line number and selecting

Set Breakpoint .

6.

Click on Run (Run menu) in the Insight debugger to run the application software.

7.

Click on Registers (View menu) to display the processor registers.

8.

Right-click on an instruction’s line number and choose Set

Breakpoint to set a breakpoint.

Altera Corporation 31

EPXA1 Development Kit Getting Started User Guide Getting Started

9.

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.

32 Altera Corporation

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals