2.10 Debugging the system

How to use Model Debugger to execute and debug a built model.

Procedure

  1. Click the Debug button on the System Canvas toolbar.
    Figure 2-18 Debug Simulation dialog
    Debug Simulation dialog

  2. In the Debug Simulation dialog, select the required radio buttons to launch Model Debugger and attach to your target. The radio buttons that are available depend on the target settings.
    If required, enter additional command line options by using the Additional Model Debugger command line options field. You can also set the application and parameter files to be simulated by using the Application and Parameter file drop-down menus.
  3. Click OK.
    The Configure Model Parameters dialog displays the instantiation parameters for the top-level components in the model.
    Figure 2-19 Configuring Model Parameters dialog
    Configuring Model Parameters dialog

    To display parameter sets:
    • Select a Parameter category in the left-hand side of the dialog.
    • Click on a + next to a component name in the right-hand side.
    For different views of the system parameters, select the List View or Tree View tabs.
    No changes are required in this case.
  4. Click OK to close the dialog.
    The Select Targets dialog opens.
    Figure 2-20 Select Targets dialog
    Select Targets dialog

    The Select Targets dialog displays the components to use in Model Debugger. The ARM processor component is the default.
    You can select additional targets to load in their own instances of Model Debugger. This is not required in this case.
  5. Click OK to start Model Debugger.
    The debugger loads the model library from the build directory of the active configuration. One instance of Model Debugger starts.
  6. If the Load Application Code dialog does not appear automatically, select Load Application Code from the File menu, and select %PVLIB_HOME%\images\dhrystone.axf as the application. This needs dhrystone.axf, which is in the Third Party IP add-on for the Fast Model Portfolio.
  7. Click Run to start the simulation.
    A Model Debugger Application Input pop-up window appears.
    Figure 2-21 Model Debugger Application Input window
    Model Debugger Application Input window

  8. Type 1000000 into the Application input field.
  9. Click OK.
    After a short pause, the results of the benchmark are shown in the StdIO tab of Model Debugger.
Related reference
Debugging
Non-ConfidentialPDF file icon PDF versionARM DUI0370S
Copyright © 2007-2014 ARM. All rights reserved.