2.7.2 Configuring a connection to a built-in Fixed Virtual Platform (FVP) model for Linux application debug

You can use DS-5 to connect to a Fixed Virtual Platform (FVP) model for Linux application debugging.

Using the Debug Configurations dialog box, you can configure DS-5 Debugger to either:

Use the described options to configure a connection to the Cortex®-A9x1 FVP (preconfigured to boot ARM® Embedded Linux) supplied with DS-5. Connecting to other FVPs available in the DS-5 configuration database follow a similar sequence of steps.

Tip:

FVPs installed with your edition of DS-5 are listed under the ARM FVP (Installed with DS-5) tree. Compare DS-5 editions to see which FVPs are available with your license.

Procedure

  1. From the main menu, select Window > Run > Debug Configurations....
  2. In the configuration tree, select DS-5 Debugger and then click Create a new configuration New to create a new configuration.
  3. In the Name field, enter a suitable name for the new configuration, for example, Hello World.
  4. In the Connection tab, in the Select target panel, browse and select ARM FVP (Installed with DS-5) > Cortex-A9x1 pre-configured to boot ARM Embedded Linux > Linux Application Debug.
    Figure 2-9 Debug Configurations - ARM FVP (Installed with DS-5)
    DebugConfigurations - ARM FVP (Installed with DS-5)


    • If you want to connect to a FVP with the application and gdbserver already running on it, select Connect to already running gdbserver and configure the options.

      Note:

      To use this option, the FVP must already be started and Linux booted, either manually or by a previous DS-5 debug session.
      1. In the Connections area, under gdbserver (serial), select Terminate gdbserver on disconnect if you want to terminate the gdbserver when disconnecting from the FVP.
      2. In the Files tab, use the Load symbols from file option in the Files panel to specify symbol files.
      3. In the Debugger tab, specify the actions that you want the debugger to perform after connecting to the target.
      4. If required, click on the Arguments tab to enter arguments that are passed to the application when the debug session starts.
      5. If required, click on the Environment tab to create and configure the target environment variables that are passed to the application when the debug session starts.
    • If you want to connect to a FVP, start gdbserver, and debug an application already present on the target, select Start gdbserver and debug target resident application, and configure the options.
      1. In the Model parameters area, the Enable virtual file system support option maps directories on the host to a directory on the target. The Virtual File System (VFS) enables the FVP to run an application and related shared library files from a directory on the local host.
        • The Enable virtual file system support option is selected by default. Deselect the option if you do not want virtual file system support.
        • If the Enable virtual file system support option is enabled, by default, your current workspace location is used as the directory on the host that will be seen by the target as the writable mount point. If you want to specify a different location, specify it here.
      2. In the Files tab, specify the location of the Application on target and the Target working directory. If you need to load symbols, use the Load symbols from file option in the Files panel.
      3. In the Debugger tab, specify the actions that you want the debugger to perform after connecting to the target.
      4. If required, click on the Arguments tab to enter arguments that are passed to the application when the debug session starts.
      5. If required, click on the Environment tab to create and configure the target environment variables that are passed to the application when the debug session starts.
  5. Either click Apply to save the configuration settings or click Debug if you want to connect to the target and begin debugging immediately. Alternatively, click Close to close the Debug Configurations dialog box. Use the Debug Control view to connect to the target associated with this debug configuration.

Debugging requires the DS-5 Debug perspective. If the Confirm Perspective Switch dialog box opens, click Yes to switch perspective. When connected and the DS-5 Debug perspective opens, you are presented with all the relevant views and editors.

For more information on these options, press F1 on your keyboard to display dynamic context help.

Non-ConfidentialPDF file icon PDF versionARM DUI0446Z
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.