User manual

UM0036 ST Assembler/Linker build tutorial
Doc ID 7705 Rev 11 373/385
RESULT:
The commands invoked, error messages and warnings that occur during the build are
displayed in the Build tab of the Output window.
The Assembler is invoked for each of the .asm source files in the project. It is not invoked
for the file that we excluded from the build (tim_rtc.bat). The Assembler command line
is:
asm -sym -li=$(IntermPath)$(InputName).lsr $(InputFile) $(ToolsetInc) -
obj=$(IntermPath)$(InputName).$(ObjectExt) -d DEBUG_IT 1 -I="C:\Program
Files\STMicroelectronics\st_toolset\stvd\Example\tutorial_asm"
The Linker is invoked once, to link the object files. The linker command line is:
lyn Debug\st72311n4.obj+Debug\tim_rtc.obj, Debug\realtime. cod, " "
OBSEND is invoked once to generate the final output realtime.s19 in Motorola S-Record
format. The OBSEND command line is:
obsend Debug\realtime.cod,f,Debug\realtime.s19,s
The Post-Link Step is run in order to create the listing of absolute addresses required by
the debugger.
The following files have been generated in the Debug folder in the working directory:
realtime.s19
realtime.map
realtime.sym
realtime.cod
st72311n4.lsr, tim_rtc.lsr
st72311n4.lst, tim_rtc.lst
st72311n4.obj, tim_rtc.obj
The application realtime.s19 includes the routine activated by the -d option, which will
generate a signal on the PFDR pin each time a timer interrupt occurs. You can confirm this
by running the application on the Simulator and plotting the output of the PFDR pin.
13.7 Building a version for programming
STVD is designed to allow you to customize and change project settings quickly and easily.
Build configurations allow you to save and change all the settings associated with a build.
For example the default configurations allow you to switch between settings for generating a
version for debugging or a final, optimized version of the application. In addition, the tabs in
the Project Settings window also allow you to enter user defined commands that are
supported by your toolchain.
Changing the build configuration
Project settings can be saved as configurations allowing you to quickly change and recall a
full range of settings. STVD has two preset configurations: Debug and Release. By default,
when you create a project in STVD, the configuration is set to Debug. Now we are going to
generate a final version using the Release configuration.