Programming with the Emulator

Use the MPLAB® REAL ICE™ In-circuit Emulator as a programmer to program a production device (i.e., a device that is not on a debug or emulation header). Set the emulator as the hardware tool for your MPLAB X IDE project (File > Project Properties, Hardware Tool category, Real ICE > SN XXXXXX) and select Run > Run Project.


Program Application Code

The application code is programmed into the device’s memory via the In-Circuit Serial Programming (ICSP) protocol as described above. No target oscillator clock is required while programming and all modes of the processor can be programmed, including code protect, Watchdog Timer enabled, and table read protect.


(Optional) Program Program Exec

A small program executive program may be loaded into the high area of program memory for some target devices. This increases programming speeds for devices with large memories.


Disable Debug Features

Special in-circuit debug registers in the target device are disabled by MPLAB X IDE, along with all debug features. This means that a breakpoint cannot be set, and register contents cannot be seen or altered.


Run Program

The target device is run in Release mode. As a programmer, the emulator can only toggle the MCLR line to reset and start the target.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.