User manual

Project creation and build UM0036
82/385 Doc ID 7705 Rev 11
Create a project from an existing executable
To create a project from an executable (.abs, .elf, .hex, .s19):
1. Select the Create from Executable icon and click on OK.
You will receive an information message asking you if you want to create a project to
wrap the executable.
2. Click on OK to continue.
The New Project window opens.
3. Here enter a name for the project file (.stp) and the project location.
By default, your project is named executable_filename.stp and its location is the
directory of the executable file.
4. Next, select the appropriate microcontroller in the MCU Selection window and click on
OK.
Your project is created and appears in the Workspace window. It contains the default
folders and any files specified by the toolset settings. The Project Settings window
contains the Debug tab and the MCU Selection tab where you can change the
microcontroller selection.
You can now identify your debug instrument and debug the application.
Create a project from an existing makefile
Early versions of STVD used a makefile (.mak) to define the build process for source files
and a specified toolset. To support the migration of projects from earlier versions, STVD
allows you to create a project around a makefile. In this way you preserve the information
and conditions applied when building previous applications. For more information about this
process, refer to Migrating old workspaces (STVD7 2.5.4 and prior versions) on page 71.
To create your project:
1. Highlight the Create from Makefile icon and click on OK.
A browse window opens. By default it is set to display .mak makefiles.
2. Highlight the makefile file that you want to use to create your project and click on Open.
You will receive an information message, notifying you that STVD is going to wrap the
makefile in a new project.
3. Click on OK to continue.
The New Project window opens.
4. Here enter a name for the project file (.stp) and the project location.
By default, your project is named makefile_name.stp and its location is the directory
of the makefile.
5. Now, select your toolset from the list box and enter its path. Click on OK.
Your workspace has been created and named makefile_name.stw. The new project
file appears in the Workspace window, typically on the left side of STVDs main
window. Your project contains the makefile that you have identified and the External
Dependencies folder.
Before you start debugging your application you will have to identify the executable file to
debug and you may have to rebuild your application. For more information about this
process, refer to Migrating old workspaces (STVD7 2.5.4 and prior versions) on page 71.