User manual

Project creation and build UM0036
112/385 Doc ID 7705 Rev 11
The Startup File list box allows you to choose to use one of the provided startup files. The
list of startup files is different for the ST7 and STM8 toolsets. For a complete description of
startup files, refer to the C Cross Compiler User’s Guide.
Customizing linker input settings
The input settings interface for the linker allows you to define input sources for the linker
such as libraries and vector files, as well as allowing you to define segments in your
microcontroller’s memory and assign code sections to them. Access this view by selecting
Input in the Category list box. The view will change to that shown in Figure 75.
Figure 75. Cosmic linker input view
Auto segment declaration and section assignment
There are three ways to manage the Cosmic script link file:
Automatic
Semi-automatic
Custom
When the Auto option is checked the script link file is automatically generated to the output
path. The filename by default is TargetSName.lkf.
When the Custom option is selected, you can enter the path and filename that you want for
the script link. In this mode the script link file will not be updated if you make changes to your
project, such as adding or removing a source file. If you do make such a change you will
have to edit the script link manually.
When the Semi-auto option is selected, STVD automatically updates the linker file sections
that are delimited by specific markers. All fields out of these sections can be manually
edited. The markers reserved for STVD are:
<BEGIN SEGMENT_CONF>, <END SEGMENT_CONF>
<BEGIN STARTUP_FILE>, <END STARTUP_FILE>.