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:
- From the File menu, click New then New Project...
The New Project dialog appears. This dialog displays the set of project types and project templates.
We'll create an externally built executable project :
- Select the Standard > Externally Built Executable project type in the Categories pane.
- Select the An externally built executable icon in the Project Templates pane which selects the type of project to add.
- Type Externally_Built_Tutorial in the Name edit box, which names the project.
- You can use the Location edit box or the Browse button to locate where you want the project to be created.
- Click OK.
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.