User manual

Project creation and build UM0036
78/385 Doc ID 7705 Rev 11
Note: If a pop-up message appears indicating that your makefile was not found, click on OK and
then check that your makefile is in the same directory as the .wsp that you are trying to
open.
4. In the MCU Selection window, pick the target microcontroller for your application from
the list, click on Select and then OK.
5. Select File > Save Workspace from the main menu bar.
A workspace in .stw format is created in the working directory. In the future, you will
open this file and not the old .wsp file. You can now continue building and debugging
your application.
The .stw workspace that you have created is limited to using your makefile when you build
and rebuild your application. For this reason you do not have access to the tabs in the
Project Settings window that provides an interface for controlling your toolset and the
building of your application.
4.2.2 Creating a new workspace
STVD provides several options for creating a workspace in the New Workspace window. To
access this window, select File > New Workspace. From this window you can:
Create a workspace with a new project on page 23
Create an empty workspace
Create a workspace from an existing project
Create a workspace by wrapping an executable
Create a workspace by wrapping a makefile
Create an empty workspace
You can create an empty workspace by selecting the Create an Empty Workspace icon.
In the New Workspace window:
1. Type the name of the workspace in the Workspace Name field.
2. Enter the working directory where files are to be saved in the Workspace Location
field, or use the browse button to find a location.
3. Click on OK to create your workspace.
Create a workspace from an existing project
This option allows you to create a workspace around an existing STVD project file (.stp).
1. From the New Workspace window, select the Create from Project icon and click on
OK.
A browse window opens. By default it is set to display .stp project files.
2. Highlight the project file that you want to use to create your workspace and click on
Open.
Your workspace is created and named project_filename.stw. The new workspace file
appears in the Workspace window, typically on the left side of STVD’s main window.
Your workspace contains the project you identified and its contents.
Note: When creating a workspace in this manner, make sure that your source files are in the
correct directory relative to the project file. Otherwise you must update the paths by adding
the files to the Source Files folder from their actual location (see Section 4.3.3: Adding and
removing folders and files on page 83).