ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
97
6.
Builds and Error Messages
This chapter briefly describes the PSoC Designer assemble and build process, linker operations,
and errors you might encounter with your code.
6.1
Assemble and Build
Once you have added and modified assembly language source files, you must assemble the files
and build the project. This is done so PSoC Designer can generate a HEX file to be used to down-
load to the ICE and debug the PSoC program. Each time you assemble files or build the project, the
Output Status window is cleared and the current status is entered as the process occurs.
When building is complete, you will see the number of errors. Zero errors signifies that the assem-
blage or build was successful. One or more errors indicate problems with one or more files. For more
information on the PSoC Designer Output Status Window refer to the
PSoC Designer IDE Guide
.
6.2
Linker Operations
The main purpose of the Linker is to combine multiple object files into a single output file, suitable to
be downloaded to the In-Circuit Emulator for debugging the code and programming the device. Link-
ing takes place in PSoC Designer when a project build is executed. The linker can also take input
from a library which is basically a file containing multiple object files. In producing the output file, the
Linker resolves any references between the input files. In some detail, the linking steps involve:
1. Making the startup file (
boot.asm
) the first file to be linked. The startup file initializes the execution
environment for the C program to run.
2. Appending any libraries that you explicitly request (or in most cases, as are requested by the
IDE) to the list of files to be linked. Library modules that are directly or indirectly referenced will be
linked. All user-specified object files (e.g., your program files) are linked.
3. Scanning the object files to find unresolved references. The linker marks the object file (possibly
in the library) that satisfies the references and adds it to its list of unresolved references. It
repeats the process until there are no outstanding unresolved references.
4. Combining all marked object files into an output file, and generating map and listing files as
needed.
For additional information about the Linker and specifying Linker settings, refer to the
PSoC
Designer IDE Guide
.
To compile the source files for the current project, click the Compile/Assemble
icon in the toolbar.
To build the current project, click the Build icon in the toolbar.
Summary of Contents for PSoC DESIGNER ImageCraft M8C
Page 6: ...6 ImageCraft Assembly Language Guide Document 001 44475 Rev B Contents Feedback ...
Page 10: ...10 ImageCraft Assembly Language Guide Document 001 44475 Rev B Introduction Feedback ...
Page 24: ...24 ImageCraft Assembly Language Guide Document 001 44475 Rev B M8C Microprocessor Feedback ...
Page 95: ...ImageCraft Assembly Language Guide Document 001 44475 Rev B 95 Assembler Directives Feedback ...
Page 96: ...96 ImageCraft Assembly Language Guide Document 001 44475 Rev B Assembler Directives Feedback ...
Page 104: ...104 ImageCraft Assembly Language Guide Document 001 44475 Rev B Feedback ...
Page 108: ...108 ImageCraft Assembly Language Guide Document 001 44475 Rev B Index Feedback ...