MPLAB
®
ICD 4 User’s Guide
DS50002596A-page 58 2017 Microchip Technology Inc.
A.3.1 Memories to Program
Select which memories to be programmed into the target.
If “Erase All Before Program” is selected as shown in Section A.3.4 “Freeze
Peripherals”, then all device memory will be erased before programming. To select
specific memories to program after erase, check the specific memory type. To preserve
the value of memory of different types, check to preserve that memory type and check
the specific memory type; checking “Preserve Memory” writes the current contents to
a buffer before erasing, and checking “Memory” writes the contents back into that
memory after erasing, where Memory is the type of memory, such as EEPROM.
TABLE A-1: MEMORIES TO PROGRAM OPTION CATEGORY
Auto select memories
and ranges
Allow ICD 4 to Select Memories - The debugger uses your
selected device and default settings to determine what to program.
Manually select memories and ranges - You select the type and
range of memory to program (see below).
Configuration Memory Check to program Configuration Memory. This is always
programmed in Debug mode.
Boot Flash Check to program Boot Flash. This is always programmed in
Debug mode.
EEPROM Check to program EEPROM memory.
ID Check to program the user ID.
Program Memory Check to program the target program memory range specified
below.
Program Memory
Range(s) (hex)
The starting and ending hex address range(s) in program memory
for programming, reading, or verification. Ranges must be sepa-
rated by a comma (e.g., 0-ff, 200-2ff). Ranges must be aligned on a
0x800 address boundary.
Note: The address range does not apply to the Erase function. The
Erase function will erase all data on the device.
Preserve Program
Memory
Check to not program the target program memory range specified
below.
Ensure that code is NOT code protected.
Preserve Program
Memory Range(s) (hex)
The starting and ending hex address range(s) in target program
memory to preserve when programming, reading, or verifying.
This memory is read from the target and overlayed with existing
MPLAB X IDE memory.
Preserve Memory Check to preserve Memory for reprogramming, where Memory is
the type of memory. Types include: EEPROM, ID, Boot Flash, and
Auxiliary.
Ensure that code is NOT code protected.
Preserve Memory
Range(s) (hex)*
The starting and ending hex address range in target Memory to
preserve when programming, reading, or verifying. Memory is the
type of memory, which includes EEPROM, ID, Boot Flash, and
Auxiliary.
This memory is read from the target and overlayed with existing
MPLAB X IDE memory.
Ensure that code is NOT code protected.
* If you receive a programming error due to an incorrect range, ensure the range does not
exceed available/remaining device memory.