User manual

ST Assembler/Linker build tutorial UM0036
370/385 Doc ID 7705 Rev 11
5. Drag the file st72311n4.inc to the Include Files folder.
6. You can save your workspace by selecting, File>Save Workspace.
RESULT:
Open the Project Settings window by selecting Project>Settings in the main menu bar. In
the Project Settings window, select the Debug tab. The Source Directories field shows the
pathnames that the ST Assembler Linker will use to locate your source files, tim_rtc.asm
and st72311n4.asm.
Now select the ST7 ASM tab. The Include Paths field shows the pathname that the ST
Assembler Linker will use to locate the include file st72311n4.inc that you inserted in the
project.
13.4 Creating a folder to organize files in the project
You can also create folders within your project to help you organize files. To do so:
1. Right-click on the project to open the contextual menu and select New Folder.
2. In the New Folder window, enter the name “Obsolete” in the Name of the New Folder
field.
3. Click on OK to create the folder and close the window.
You can add files directly to the new folder using the Add Files to Folder command. To do
so:
1. Right-click on the Obsolete folder and select Add Files to Folder from the contextual
menu.
2. In the browse window, select the file, tim_rtc.bat to add to the folder and click on Open.
For standard installations of STVD this file is located at:
C:\Program Files\STMicroelectronics\st_toolset\stvd\examples\tutorial_asm\
RESULT:
The file tim_rtc.bat has been added to your project. This is the type of .bat file that was
used when building with previous versions, however this file is no longer necessary for
building with STVD7 3.0 and later versions. We have included this file, which contains the
command lines and build options used when building with a previous version so that you can
easily view it and compare the command lines and options that result from using STVD’s
Project Settings window. This file is only included as a reference and we will specify not to
use it in the build later in this tutorial.
13.5 Project settings
STVD's Project Settings window allows you to view the command lines and options that
will be used when building your application. From this window you can also change options
and apply user-defined options and commands that are supported by your toolset.
Changing build settings
Settings can be applied to the entire project or to specific files. In the following procedure we
will use the define (-d) option in order to activate a special instruction in the code for the
debug version of our application.