| |||
| Home > Getting Started > Getting started with RealView Debugger > 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:
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.
You can add the EB RTSM to the RealView Debugger Connect to Target window under the Real-Time System Model (RTSM) debug interface configuration.
In RealView Debugger, select Target → Connect to Target... to open the Connect to Target window.
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\ wherenn\external\lib\environment\Release
nnis a number
environmentis the name of the platform and compiler.
The model file names are of the form RTSMEmulationBaseboard_CT on
Windows, or processor.dllRTSMEmulationBaseboard_CT on
Linux, whereprocessor.so
processoris 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_EB directory, where processor\platform-
build-compiler
processoris one of the supplied processor models. such as ARM1176.
platform-build-compileris the platform, build type, and compiler, for example Linux-Release-GCC-3.4.
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.
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.
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.
Start Model Shell, if it is not already running. See Using Model Shell.
In RealView Debugger, select Target → Connect to Target... to open the Connect to Target window.
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.
In the RealView Debugger Connect to Target window, double click on your newly-created SoC Designer target to connect to it.
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