2.3.1. Connecting to the EB Real-Time System Model in RealView Debugger

There are two different ways in which 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, including crashes.

Starting the EB Real-Time System Model as an RTSM connection

You can 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 b 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 number

      environment

      is the name of the platform and compiler.

      The model file names are of the form RTSMEmulationBaseboard_CTprocessor.dll on Windows, or RTSMEmulationBaseboard_CTprocessor.so on Linux, where

      processor

      is one of the supplied processor models, such as 1176.

    • If you have separately installed and built an EB RTSM yourself using System Canvas, you can load the models from your %PVLIB_HOME%\examples\RTSMEmulationBaseboard\Build_EBprocessor\platform- build-compiler 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 you want to use in the Models pane on the left side of the Model Configuration Utility. Configure the device parameters if required. See Using a configuration GUI in RealView Debugger. When you have finished, or if you do not want to configure any parameters, click OK.

  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.

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. See Using Model Shell.

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

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

Semihosting support

The simulator handles semihosting by intercepting SVC 0x123456 or 0xAB, depending on whether the processor is in ARM or Thumb state. All other SVCs are handled by causing the simulated core to jump to the SVC vector.

It is not necessary to disable semihosting support in order to boot an operating system, as long as the operating system does not use SVC0x123456 or 0xAB for its own purposes.

Semihosting support can be disabled by modifying the value of the @Semihosting_State register in RealView Debugger by either:

  • using the Semihost tab of the Register pane

  • at the command-line entering:

    RVD> setreg @Semihosting_State=0
    
Copyright © 2008 ARM Limited. All rights reserved.ARM DUI0424B
Non-ConfidentialUnrestricted Access