User manual

MPLAB
®
PM3 User’s Guide
DS51464C-page 34 © 2006 Microchip Technology Inc.
3.11 BUILDING THE PROJECT
Select Project>Build All to assemble and link the code. If the code assembled with no
errors, the Output window will look like Figure 3-15.
FIGURE 3-15: BUILD OUTPUT WINDOW
Save your project by selecting File>Save Workspace
.
If these do not assemble and link successfully, check the following items and then build
the project again:
Check the spelling and format of the code entered in the Editor window. Make
sure the new variables and the special function registers, TRISC and PORTC, are
in upper case. If the assembler reported errors in the Output window, double click
on the error and MPLAB IDE will open the corresponding line in the source code
with a green arrow in the left margin of the source code window.
Check that the correct assembler (MPASM assembler) and linker for PICmicro
MCU devices is being used. Select Project>Set Language Tool Locations
. Click
on the plus boxes to expand the Microchip MPASM assembler toolsuite and its
executables. Click MPASM Assembler (mpasmwin.exe) and review their location
in the display. If the location is correct, click Cancel. If it is not, change it and then
click OK. The default search paths can be empty.
Upon a successful build, the output file generated by the language tool will be loaded.
This file contains the object code that can be programmed into a PICmicro MCU and
debugging information so that source code can be debugged, and source variables can
be viewed symbolically in Watch windows.
Now that you’ve built your project successfully, you can prepare for programming your
device.