User manual

Your STVD graphical environment UM0036
72/385 Doc ID 7705 Rev 11
For a full migration of your project, follow the 7 steps outlined in this section. This will take a
little time up-front during the migration, but will give you full use of all STVD’s new build
features.
7 steps to full migration
To migrate your project from previous versions, you need to set up a workspace and project
in STVD 4.0.1, add the source and include files and then confirm the various options and
paths that were previously specified in your makefile.
To provide STVD all the information required to build your application, you must now specify
the target microcontroller, the build options, additional include and library paths and the link
script in the Project Settings interface.
From the makefile, you can note the command line options and path information used in
previous builds of your application.
Open the Project Settings window by selecting Project>Settings… from the main menu.
Table 25. Migration strategy advantages and disadvantages
Full migration Partial migration (wrap makefile)
(1)
Advantages
• Allows full use of the graphical interface for managing build
options and configuration
• Facilitates modification of build settings during development
• Automatic, complete management of dependencies
• No makefile to maintain
• Migrate your project one time only
• Automatic migration
• Rapid migration
• Use exactly the same settings used when building
with a previous version and produces exactly the
same executable
Disadvantages
• Manual migration
• Migration takes a little longer
• Cannot use the STVD graphical interface to
manage build options
• Must continue to maintain the makefile and the
dependencies manually
1. If you want to continue using your makefile to manage the build options for your application, refer to Create a workspace by
wrapping a makefile.
Table 26. Migration steps 1 and 2
Step Related information
STEP 1: Create a workspace in STVD.
Select File>New Workspace, then select the New
Workspace and Project icon.
Follow the steps in the different screens to create your
workspace and project.
Do not use the Create from...” options.
If you need more help on how to create a workspace,
refer to Create a workspace with a new project.
STEP 2: Add the application source files to the project.
Select Project> Insert Files into Project, then drag the
source files to the Source Files folder in the Workspace
window.
Using the same command, you can add any include
or header files that your application may require and
place them in the appropriate folder in the
Workspace window.
If you need more help on adding files to your
workspace, refer to Add source files (.asm, .c, .s) to
your project.