3.4.4 Debugging with Microsoft Visual Studio at the host level

How to debug at the host level with Microsoft Visual Studio on Microsoft Windows and System Canvas.

To perform host-level debugging, attach Microsoft Visual Studio to a running Model Debugger process.

Procedure

  1. Start System Canvas and load the project for your model.
  2. If you have not already done so, build a Debug version of your system by selecting one of the Win32-Debug-VC20xx or Win64-Debug-VC20xx options in the Select Active Project Configuration menu, and rebuilding your model.
  3. Click the Debug button or press F5 to launch Model Debugger from System Canvas. Model Debugger starts and the Configure Model Parameters dialog appears.
  4. Configure any parameters required for the target and click OK. The Select Targets dialog opens. The ARM processor is selected by default.
  5. Select any additional targets to load. Model Debugger creates a separate window for each target. Click OK to close the dialog.
  6. Load the applications to the targets that execute software:
    • For a single target, Model Debugger displays a dialog prompting for the application.
    • For more than one target, load the application to the targets in each debug view separately by selecting Load Application from the File menu.
  7. Start Microsoft Visual Studio.
  8. In Microsoft Visual Studio, select Tools > Attach to Process.... Select the ModelDebugger.exe process in the Attach to Process dialog. Click the Attach button. It might be necessary to close additional dialogs to proceed.
  9. Microsoft Visual Studio can now control the entire host level simulation.
Non-ConfidentialPDF file icon PDF versionARM DUI0370S
Copyright © 2007-2014 ARM. All rights reserved.