User manual
ST Assembler/Linker build tutorial UM0036
368/385 Doc ID 7705 Rev 11
To do this:
1. First, enter the name realtime in the Project Filename field
2. Enter the pathname to identify the directory where you want STVD to store your project
in the Project Location field. By default, this will be the same as the working directory
that you identified when you created your workspace.
You can use the browse button to find a location if necessary.
You can create a folder for your new project by clicking on the Create folder icon. Enter
the folder name realtime in the Create Folder window and click on OK.
3. Next, select ST Assembler-Linker from the Toolchain list box.
4. Enter the path for the toolchain in the Toolchain Root field. You can use the browse
button to find it if necessary.
For standard installations of STVD the toolchain root is:
C:\Program Files\STMicroelectronics\st_toolset\asm
5. Click on OK to apply these settings.
6. The MCU Selection window opens. Select ST72311N4 from the list, click on Select,
then click OK.
7. Save the workspace again. In the main menu bar, File>Save Workspace.
RESULT:
The workspace contains the project, realtime.stp. By default this project contains folders
called Source Files, Include Files and External Dependencies. The folders that you see
in the Workspace window are used to organize your project within STVD. They do not exist
in the working directory.
However, the working directory that you have specified does contain the file realtime.stp
When you build the application this directory will also contain one or two folders (Debug
and/or Release) depending on the build configuration that you use. These folders are the
default locations for storing your application and any intermediate object files and listings.
You can now access the project settings. The project settings allow you to control the
building of your application using the options that are specific to your toolchain. From the
main menu bar select Project>Settings to open the Project Settings window. In the
General tab, you will see that the project realtime.stp is associated with the ST Assembler
Linker toolchain. The path for locating the toolchain is displayed in the Root Path field. Exit
this window by clicking on OK.
In addition the project is associated with an MCU: the ST72311N4. Your project will be built
for this MCU, taking into account its peripherals and memory mapping. When selecting your
debug instrument and programming hardware you will be limited to those tools that support
this MCU. You can always change the MCU selection later in the project settings interface,
but you must rebuild the application.
13.3 Inserting files in your project
To build your application, you must identify the source files for STVD. You will do this by
inserting the source files using the Insert Files into Project command. In addition, when
building with the ST Assembler Linker, your files may need to be built in a specific order.
Once placed in the correct order you can protect the order using the Add Sorted Elements
option.