User manual
MPLAB
®
REAL ICE
™
In-Circuit Emulator User’s Guide
DS51616B-page 62 © 2008 Microchip Technology Inc.
5.3 CREATING A PROJECT
The easiest way to create a new project is to select Project>Project Wizard. With the
help of the Project Wizard, a new project and the language tools for building that project
can be created. The wizard will guide you through the process of adding source files,
libraries, linker scripts, etc. to the various “nodes” on the project window. See MPLAB
IDE documentation for more detail on using this wizard. The basic steps are provided
here:
• Select your device (e.g., PIC24FJ128GA010)
• Select a language toolsuite (e.g., Microchip C30 Toolsuite)
• Name the project
• Add application files (e.g., program.c, support.s, counter.asm)
• Add a linker script file (optional) - Most multi-file projects no longer require that
you add a linker script file to your project. See the language tool documentation
for details.
If you do need or want to add a linker script file, default linker scripts directories
are listed below. For some debug tools, an i version of the linker script is
necessary for debugging, e.g., 18F8722i.lkr.
MPLINK™ Object Linker used with:
•MPASM™ Assembler
C:\Program Files\Microchip\MPASM Suite\LKR
• MPLAB C Compiler for PIC18 MCUs (formerly MPLAB C18)
C:\MCC18\lkr
MPLAB Object Linker for PIC24 MCUs and dsPIC DSCs (formerly MPLAB LINK30)
used with:
• MPLAB Assembler for PIC24 MCUs and dsPIC DSCs (formerly MPLAB ASM30)
C:\Program Files\Microchip\MPLAB ASM30 Suite\Support\gld
• MPLAB C Compiler for PIC24 MCUs and dsPIC DSCs (formerly MPLAB C30)
C:\Program Files\Microchip\MPLAB C30\support\gld
C:\pic30_tools\support\gld
MPLAB Object Linker for PIC32MX MCUs (formerly MPLAB LINK32) used with:
• MPLAB Assembler for PIC32MX MCUs (formerly MPLAB ASM32)
C:\Program Files\Microchip\MPLAB ASM32 Suite\Support\ld
• MPLAB C Compiler for PIC32MX MCUs (formerly MPLAB C32)
C:\Program Files\Microchip\MPLAB C32\support\ld
5.4 VIEWING THE PROJECT
After the Project Wizard has created a project, the project and its associated files are
visible in the Project window (View>Project
). Additional files can be added to the project
using the Project window. Right click on any line in the project window tree to pop up a
menu with additional options for adding and removing files.
See MPLAB IDE documentation for more detail on using the Project window.