User manual

Getting started with STVD UM0036
28/385 Doc ID 7705 Rev 11
Figure 6. Workspace window
Caution: When building with ST Assembler Linker, your application source files may need to be
assembled in a specific order. To change the order of the files, you need to disable the Add
Sorted Elements option in the workspace contextual menu. For more information, refer to
Ordering source files before assembly on page 88.
2.4 Build your application
Once you have created your project, you are in the Build context by default. You have
access to all the commands necessary for setting up, customizing and building your
application. You do not yet have access to the commands for debugging your application, or
programming it to your microcontroller.
In the build context, you can select default settings for building your application in order to
debug it, or to generate a release version to be programmed to your microcontroller.
In addition, you have access to the interface for customizing the building of your application
and identifying the target microcontroller. When using STVD, you must identify the target
MCU to which you will program your application.
2.4.1 Configuring project settings for Debug or Release
Build configurations allow you to change project settings quickly and easily. STVD has two
preset configurations:
Debug: creates a version of your application that allows you to use all of STVD’s
advanced debugging features. When using this configuration, output files are saved in
the Debug folder in your workspace directory.
Release: creates a version of your application using the default optimizations for your
toolset. This version of your application is ready to be programmed to your target
microcontroller. Output files are saved in the Release folder in your workspace
directory.
1. To choose a build configuration, select Build > Configurations.
The Project Configurations window is displayed.
2. Highlight the configuration you want to use and then click on Set Active. Click on
Close, to close the window.