A.2.3. Using RealView Debugger to run a system model

See the following sections for details on the ways you can connect to an EB RTSM:

Note

You must not connect to more than one RTSM at any one time in RealView Debugger. If you do, you might experience unexpected behavior or crashes.

Starting the model as an RTSM connection in RealView Debugger

Follow the steps below to add the EB RTSM to the RealView Debugger Connect to Target window under the Real-Time System Model (RTSM) debug interface configuration.

  1. In RealView Debugger, select Target → Connect to Target... to open the Connect to Target window.

  2. Click the Add button beside the Real-Time System Model (RTSM) debug interface name. This opens the Model Configuration Utility window:

    • The RTSM models are automatically displayed in the list based on the path set by the ARM_RTSM_PATH variable.

    • If the ARM_RTSM_PATH variable has not been set, click the Browse... button to open a file browser for locating the EB RTSM. You can find these models in:

       %ARMROOT%\SysGen\PVExamples\4.0\nn\external\lib\environment\Release
      

      where:

      nn

      is a version number

      environment

      is the name of the platform and compiler.

      The model filenames are of the form:

      • RTSM_EB_processor.dll on Windows

      • RTSM_EB_processor.so on Linux.

      where processor indicates the supplied processor model such, for example, as 1176.

    • If you have separately installed and built an EB RTSM yourself using System Canvas, you can load the models from the Build_EBprocessor\platform-build-compiler subdirectory of the %PVLIB_HOME%\examples\RTSM_EB\directory where:

      processor

      is one of the supplied processor models. such as ARM1176.

      platform-build-compiler

      is the platform, build type, and compiler, for example Linux-Release-GCC-3.4.

      See Building an EB Real-Time System Model.

  3. Select the model to use in the Models pane on the left side of the Model Configuration Utility:

  4. In the RealView Debugger Connect to Target window, double-click on your newly-created target to connect to it. If you are grouping targets by Configuration, expand the target connection tree view to see your target instance. Connecting to a target opens a CLCD window.

Configuring the system from RealView Debugger

In RealView Debugger, you can configure the EB RTSM parameters before you connect to the model and start it:

  • If you are adding the particular EB RTSM to the RealView Debugger Connect to Target list, the Model Configuration Utility dialog box is displayed automatically.

  • Alternatively you can right click on your existing target in the Connect to Target list and select Configure... to open the same dialog.

To view the configuration parameters, scroll down the list of devices shown in the upper right pane. Selecting a device populates the lower right pane with the device parameters.

To change a parameter value, select a boolean from the drop down list, or enter data such as strings or addresses by clicking in the relevant field. Hovering the mouse pointer over a device or parameter shows a description or additional information.

To change the numeric display from decimal to hexadecimal, right click on the parameter value in the lower right pane and select Hexadecimal Display from the context menu.

Connecting to a running model using RealView Debugger

You can use RealView Debugger to connect to an already running Model Shell instance of the EB RTSM. You can make multiple debugger connections to a single model instance.

  1. Start Model Shell, if it is not already running, as described in Using Model Shell to run the system model.

  2. In RealView Debugger, select Target → Connect to Target... to open the Connect to Target window.

  3. Click the Add button beside the SoC Designer debug interface name.

  4. The debugger detects any running CADI servers and displays them in a pop-up window. The core tile in your running EB RTSM is automatically selected. Click OK.

  5. In the RealView Debugger Connect to Target window, double-click on your newly-created SoC Designer target to connect to it.

Copyright © 2007-2010 ARM Limited. All rights reserved.ARM DUI 0370K
Non-ConfidentialID110210