| |||
| Home > Building and Running the EB RTSM Example System > Connecting to the model > Using Model Debugger to run a system model | |||
This section describes the various ways you can use Model Debugger to connect to a model:
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.
In Model Debugger, select File → Connect to Model.
The Connect Remote dialog shown in Figure A.1 is displayed.
In the Connect Remote dialog, select the entry for the EB RTSM.
Click Connect.
The Select Target dialog shown in Figure A.2 is displayed.
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.
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.
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.
To view the configuration parameters:
Click Category View to expand the tree view in the left hand Parameter category pane
Click a component in the list, for example coretile.core, to highlight the parameter category to modify
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.