This section describes how to debug applications that have not been built by CrossStudio. To keep things simple, we shall use the application that we have just built as our externally built application.

To start debugging an externally built application, you need to create a new externally built executable project. To do this, do the following:

The New Project dialog appears. This dialog displays the set of project types and project templates.

We'll create an externally built executable project :

Once created, the project setup wizard prompts you for the executable file you want to use.

Enter the path to the Tutorial.hzx executable file we generated earlier in the Executable File field. For example, if the project was created in the C:/CrossWorks Projects/Tutorial directory and was built using the MSP430 Debug configuration, the path to the executable file will be C:/CrossWorks Projects/Tutorial/MSP430 Debug/Tutorial.hzx.

Clicking Next displays the configurations that will be added to the project.

Complete the project creation by clicking Finish.

You will be prompted as to whether you want to overwrite the existing memory map and target script, click No to keep the existing files.

Now you have created the externally built executable project you should be able to use the debugger just as we did earlier in the tutorial.