3.2.1 Debugging with Model Debugger
After building a system model, run and debug it with Model Debugger.
Configure System Canvas to locate the executable for Model Debugger, if not already
Click the Debug button on the System Canvas toolbar.
The Debug Simulation dialog opens.
Figure 3-1 Debug Simulation dialog
The available radio buttons depend on the project settings.
In the Debug Simulation dialog, select a Launch Model
Debugger and attach to target radio button. If required, use the
Additional Model Debugger command line options field and the
Application and Parameter file drop-down
menus. Click OK.
The Configure Model Parameters dialog opens.
Figure 3-2 Configure Model Parameters dialog
The names of the panes in the dialog might vary, depending on the model, but the
functions remain the same.
Make any changes, then click OK.
The Select Targets dialog opens and displays the debuggable
components that are available for connection to Model Debugger.
Figure 3-3 Select Targets dialog
Select the targets to load by clicking the box next to it and clicking
System Canvas creates an instance of Model Debugger for each target.
For each instance of Model Debugger connected to a processor:
Use the Load Application dialog to specify the application
to load for the processor. If the dialog does not appear, select Load
Application Code from the File menu.
If there is only one processor in the model, the dialog typically appears after
Figure 3-4 Load application for processor
Select the application code (.axf) to load for the
Click Open to select the file and close the dialog.
Click Run to start the simulation.
Figure 3-5 Dual processor system running in Model Debugger with one processor running ARM
embedded Linux, and the other running brot.axf