3.1. Building and debugging task overview

Table 3.1 is a high-level procedure showing the main tasks for building and debugging applications with the RVDS tools, and where to find the details.

The tasks referred to in the referenced documentation are not necessarily described in the order presented in Table 3.1. If you are using the RVDS tools for the first time, it is suggested that you work through the tasks in the order described in the referenced documents. The sequence presented in Table 3.1 reflects the order in which the tasks might usually be performed.

Table 3.1. Main building and debugging tasks

StepDescriptionReference
1

Decide what image you want to debug:

  • If you want to debug an existing image, such as a prebuilt example image, continue at step 9.

  • If you want to build the image for your project, continue at step 2.

Using the example projects

2

Choose the RVDS application you want to use to manage and build your projects:

  • if you want to use the Eclipse IDE, continue at step 4

  • if you want to build from the command line using RealView Compilation Tools, continue at step 3.

 
3

If you want to use the RealView Compilation Tools directly, then create makefiles or Windows command files containing the required build commands.

Continue at step 9 to load and debug your image in RealView Debugger.

RealView Compilation Tools Essentials Guide

RealView Compilation Tools Developer Guide

RealView Compilation Tools Assembler Guide

RealView Compilation Tools Compiler User Guide

RealView Compilation Tools Compiler Reference Guide

RealView Compilation Tools NEON™ Vectorizing Compiler Guide

RealView Compilation Tools Libraries and Floating Point Support Guide

RealView Compilation Tools Linker and Utilities Guide

4

Start the Eclipse IDE.

RealView Development Suite Eclipse Plug-in User Guide

5

If an Eclipse project already exists, continue at step 7. Otherwise, create an Eclipse project for your application.

RealView Development Suite Eclipse Plug-in User Guide

6

Set up the build configuration settings as required to build the image for your application. Continue at step 8.

RealView Development Suite Eclipse Plug-in User Guide

7Open the existing Eclipse project.

RealView Development Suite Eclipse Plug-in User Guide

8

Build the image for the Eclipse project.

RealView Development Suite Eclipse Plug-in User Guide

9

Start RealView Debugger.

RealView Debugger Essentials Guide
10Configure your debug target and connections as required.

RealView Debugger User Guide

RealView Debugger Target Configuration Guide

RealView ICE and RealView Trace User Guide

11Connect to your debug target.

RealView Debugger Essentials Guide

RealView Debugger User Guide

12Load the image ready for debugging.

RealView Debugger Essentials Guide

RealView Debugger User Guide

13Prepare any debugging facilities, such as breakpoints and tracepoints.

RealView Debugger Essentials Guide

RealView Debugger User Guide

RealView Debugger Trace User Guide

RealView Debugger RTOS Guide

14Run the image.

RealView Debugger Essentials Guide

RealView Debugger User Guide

15Perform the required debugging and monitoring tasks, such as stepping, and displaying contents of variables and memory. If using tracepoints, use the trace analysis facilities of RealView Debugger to analyze the trace output.

RealView Debugger Essentials Guide

RealView Debugger User Guide

RealView Debugger Trace User Guide

RealView Debugger RTOS Guide

16

What is the result of the debugging session?

  • If there are problems, continue at step 17.

  • If there are no problems, rebuild your image for final release.

RealView Development Suite Eclipse Plug-in User Guide

RealView Compilation Tools Essentials Guide

17

Decide how to fix any problems in your source code:

  • use the Eclipse IDE

  • use another source editor of your choice.

RealView Development Suite Eclipse Plug-in User Guide

18

When you have fixed the problem, then you must rebuild, reload, and debug the image:

  • if you are using the Eclipse IDE, then return to step 8

  • if you are using RealView Compilation Tools directly, then return to step 3.

 
Copyright © 2003-2008 ARM Limited. All rights reserved.ARM DUI 0255G
Non-Confidential