User manual
MPLAB
®
REAL ICE
™
In-Circuit Emulator User’s Guide
DS51616B-page 26 © 2008 Microchip Technology Inc.
2.8 PROGRAMMING WITH THE EMULATOR
Use the MPLAB REAL ICE in-circuit emulator as a programmer to program an actual
(non -ICE/-ICD) device, i.e., a device not on a header board. Select “MPLAB REAL
ICE” from Programmer>Select Programmer
and compile/assemble your application
code with the “Build Configuration” list box on the MPLAB IDE toolbar set to “Release”.
Also, it may be set by selecting Project>Build Configuration>Release
.
All debug features are turned off or removed when the emulator is used as a
programmer. When using the Programmer>Program
selection to program a device,
MPLAB IDE will disable the in-circuit debug registers so the MPLAB REAL ICE
in-circuit emulator will program only the target application code and the Configuration
bits (and EEPROM data, if available and selected) into the target device. The debug
executive will not be loaded. As a programmer, the emulator can only toggle the MCLR
line to reset and start the target. A breakpoint cannot be set, and register contents
cannot be seen or altered.
The MPLAB REAL ICE in-circuit emulator system programs the target using ICSP. Vpp,
PGC and PGD lines should be connected as described previously. No clock is required
while programming, and all modes of the processor can be programmed, including
code protect, Watchdog Timer enabled and table read protect.
2.9 RESOURCES USED BY THE EMULATOR
For a complete list of resources used by the emulator for your device, please see the
on-line help file in MPLAB IDE for the MPLAB REAL ICE in-circuit emulator.