3.2.1 Debugging with Model Debugger

After building a system model, run and debug it with Model Debugger.

Procedure

  1. Configure System Canvas to locate the executable for Model Debugger, if not already done.
  2. Click the Debug button on the System Canvas toolbar. Debug icon
    The Debug Simulation dialog opens.
    Figure 3-1 Debug Simulation dialog
    Debug Simulation dialog

    The available radio buttons depend on the project settings.
  3. 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
    Configure Model Parameters dialog

    The names of the panes in the dialog might vary, depending on the model, but the functions remain the same.
  4. 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 Targets dialog

  5. Select the targets to load by clicking the box next to it and clicking OK.
    System Canvas creates an instance of Model Debugger for each target.
  6. For each instance of Model Debugger connected to a processor:
    1. 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 target selection.
      Figure 3-4 Load application for processor
      Load application for processor

    2. Select the application code (.axf) to load for the processor.
    3. Click Open to select the file and close the dialog.
  7. 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
    Dual processor system running in Model Debugger with one processor running ARM embedded Linux, and the other running brot.axf

Related tasks
3.2.2 Configuring Model Debugger
Related reference
Related information
Model Debugger for Fast Models User Guide
Non-ConfidentialPDF file icon PDF versionARM DUI0370S
Copyright © 2007-2014 ARM. All rights reserved.