User manual

UM0036 Project creation and build
Doc ID 7705 Rev 11 75/385
4 Project creation and build
STVD provides a build interface that allows you to control the building of your application for
debugging or for programming to your target microcontroller. When you first open STVD, by
default you are in the Build context. In this context, you will set up your workspace and
project(s), configure project settings and build your application.
The following sections provide information about the build interface, including:
Section 4.1: Specifying a toolset
Section 4.2: Loading and creating workspaces (.stw)
Section 4.3: Creating and loading projects in a workspace
Section 4.4: Project build configurations
Section 4.5: Configuring project settings
Section 4.6: Customizing build settings for ST Assembler/Linker toolset
Section 4.7: Customizing build settings for Cosmic C toolsets
Section 4.8: Customizing build settings for Raisonance C toolset
Section 4.9: Customizing build settings for Metrowerks C toolset
Section 4.10: Configuring folder and file settings
Section 4.11: Specifying dependencies between projects
Section 4.12: Build commands
4.1 Specifying a toolset
When building your application, you can use one of supported toolsets: ST
Assembler/Linker, Metrowerks C (Hiware), or Cosmic C, and their respective options and file
formats.
The toolset to use during the build is specified at the project level. The Project Settings
window provides the interface for configuring toolset options, libraries and include paths that
are specific to building an application. This organization makes it possible for one
workspace to contain projects that are built using different toolsets.
Before you start customizing toolset paths, you will want to ensure that the default paths are
correct for the installation of the toolsets on your host PC.
Table 29. Supported toolsets and file formats
Toolset name
Supported
microcontrollers
Initial source
files
Compiler/
assembler output
Linker output
Final
executable
ST assembler/linker ST7, STM8 .asm .obj, .lst .map, .tab .s19, .hex
ST7 Metrowerks (1.1) ST7 .c, .asm .o, .dbg .abs .abs, .elf
ST7 Cosmic C ST7 .c, .s .o .st7 .elf
STM8 Cosmic STM8 .c, .s .o .sm8 .elf
Raisonance C ST7, STM8 .asm, .c .o .aof .elf