8.6.1. Load using an existing Eclipse target configuration

The Eclipse Plug-in enables target configurations to be setup and saved with your project files. These configuration files are stored in the rvi sub-directory within your project.

Before running or debugging your image from Eclipse, you must close any other connections to the device to which you intend to connect on your RealView ICE unit. When you launch RealView ICE from Eclipse, the connection properties in RealView ICE are automatically configured, and all control passes to RealView ICE. You must use the RealView ICE interface to perform debug operations. To load your executable image into RealView ICE:

  1. On Windows, select Start → All Programs → ARM → RealView ICE v3.3 → Eclipse IDE.

  2. In Eclipse, ensure that your project is built and contains an executable image.

  3. In the C/C++ Projects view, right-click on the ARM project that you want to configure.

  4. Select Debug As → Debug... from the context menu.

    The Debug dialog box appears, with the Main tab’s contents displayed by default, as shown in Figure 8.6.


    Eclipse remembers the last loaded executable image. If you wanted to reload the executable from the same project, press F11 on the keyboard. The project is rebuilt if necessary, and the image is loaded through RealView ICE.

    Figure 8.6. Debug dialog box

    Debug dialog box


    If you want to build and debug a new target you must, before loading another executable image, close any other connections to the device to which you intend to connect on your RealView ICE unit. This enables the new target configuration to be transferred from Eclipse.

  5. Select the image file that you want to debug from the appropriate RealView ICE projects listed on the left-hand side.

    To download an ELF image file automatically when you first connect, click in the Load image to the target checkbox.

    To search for and specify a particular image that you want to debug, click the Search Project... button.

  6. Select the Debugger tab, then in the Options panel select the Connection tab. By default, the field associated with the Connection tab is blank. This is shown in Figure 8.7.

    Figure 8.7. Connection option field

    Connection option field

    To populate this field, click the New button, causing the RVConfig dialog box to display. This is shown in Figure 4.1.

  7. In the RVConfig dialog box, select the required run control unit, and connect it as described in Connecting to a RealView ICE unit. Save this connection, then return to the Eclipse Debug dialog box. The name of the run control unit is now shown in the Connection tab’s field.

    To modify an existing RealView ICE configuration, select the required connection from the Connection tab’s field, then click the Configure button. This causes the RVConfig dialog box to display. For more information on this dialog box, see Using the RVConfig dialog box.

    Use the Delete button to remove a selected connection.

    Use the Refresh button to refresh the connections listed.

Below the Connection tab’s field are a number of options that are available for you to set:

Use the Apply button to apply any changes that you have made.

Use the Revert button to undo any changes that you have made.

Use the Close button to end your session and to discard any changes.

Use the Debug button to perform the debug process.

Copyright © 2002, 2004-2008 ARM Limited. All rights reserved.ARM DUI 0155J