User manual

UM0036 ST Assembler/Linker build tutorial
Doc ID 7705 Rev 11 369/385
Adding source files to the project
1. Selecting Project>Insert Files Into Project from the main menu bar, this opens a
browse window.
2. Select the following files:
st72311n4.asm
st72311n4.inc
tim_rtc.asm
For standard installations of STVD these files are located at:
C:\Program Files\STMicroelectronics\st_toolset\stvd\examples\tutorial_asm\
3. Click on Open.
The files are added to the project in the Workspace window, however they have not been
placed in specific folders and they are not necessarily in the correct order. We will build the
files in the alphabetical order: st72311n4.asm, st72311n4.inc, tim_rtc.asm.
To correct the ordering of the files:
1. Right-click on the project to open the contextual menu and click to remove the
checkmark next to the Add Sorted Elements option.
2. Drag the files into the required order, first to last from top to bottom (that is, the first file,
st72311n4.asm, on top, and the last file, tim_rtc.asm, on the bottom).
Figure 301. Arrange the files
3. Right-click on the project to open the contextual menu and click to place the checkmark
next to the Add Sorted Elements option. Their order is now protected.
4. Now, drag the source files st72311n4.asm and tim_rtc.asm to place them in the
Source Files folder. Note that STVD maintains the ordering of the files if you move
them one at a time.