A.2.2. Using Model Debugger to run a system model

This section describes the various ways you can use Model Debugger to connect to a model:

Starting Model Debugger from System Canvas

You can start the EB RTSM using Model Debugger directly from System Canvas:

  • Build and load your model project.

  • Click the Debug button in the System Canvas toolbar.

  • Model Debugger is displayed with the EB RTSM preloaded.

  • Before the running the model, you can user the Configure Model Parameters dialog to define instantiation parameters. See Configuring the system from Model Debugger.

Alternatively you can start Model Debugger separately and load the model library yourself. If you are using Windows, you must ensure that you have all required DLLs on your PATH. See the note at the end of Building an EB Real-Time System Model. For more details on using and configuring Model Debugger, see the Model Debugger for Fast Models User Guide.

You can configure certain instantiation-time parameters using the Configure Model Parameters dialog before the model starts.

Connecting to a running Model Shell using Model Debugger

  1. In Model Debugger, select File → Connect to Model.

  2. The Connect Remote dialog shown in Figure A.1 is displayed.

    Figure A.1. Model Debugger Connect remote dialog

    Model Debugger Connect remote dialog

  3. In the Connect Remote dialog, select the entry for the EB RTSM.

  4. Click Connect.

  5. The Select Target dialog shown in Figure A.2 is displayed.

    Figure A.2. Model Debugger Select Targets dialog

    Model Debugger Select Targets dialog

  6. Choose the targets to load. By default, the processor corresponding to the ARM processor in your EB RTSM is selected, and must be loaded. Click OK.

  7. Model Debugger prompts you to load an application (image) to the model. Select the application image from the Load Application dialog and click Open.

You can now control and debug the model using Model Debugger. You can make multiple debugger connections to a single model instance.

To shut down the model, return to the command window that you used to start the model and press Ctrl + C to stop the CADI server. The Model Shell process must be in the foreground before you can shut it down.

Configuring the system from Model Debugger

If you load a model in Model Debugger, the Configure Model Parameters dialog shown in Figure A.3 is displayed to enable you to define instantiation-time parameters.

Figure A.3. Configure Model Parameters dialog

Configure Model Parameters dialog

To view the configuration parameters:

  1. Click Category View to expand the tree view in the left hand Parameter category pane

  2. Click a component in the list, for example coretile.core, to highlight the parameter category to modify

  3. In the right hand pane, select or deselect check boxes for boolean parameters or enter data such as strings or addresses in fields.

    Hovering the mouse pointer over a parameter shows a description of the parameter and its default value.

    You can change the numeric display from the default hexadecimal to decimal by clearing the Hexadecimal display for numeric values box in the lower left corner.

Copyright © 2007-2009 ARM Limited. All rights reserved.ARM DUI 0370H