Select the memories to be programmed into the target.
If Erase All Before Program is selected under Program Options, then all device memory will be erased before programming. To select only certain 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 erase. Checking Memory writes the contents back into that memory after erase, where Memory is the type of memory, such as EEPROM.
Table: Memories to Program, Option Category
Auto select memories and ranges | Allow the tool 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.) |
Memory | Check to program Memory, where Memory is the type of memory. Types available are dependent on the project device and can include Data Flash, EEPROM, etc. Care should be taken when programming configuration bits, as invalid values, may cause unintended results. |
Program Memory | Check to program the target program memory range specified below. |
Program Memory Range(s) (hex)1 | The starting and ending hex address range in program memory for programming, reading, or verification. 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 code is NOT code protected. |
Preserve Program Memory Range(s) (hex)2 | The starting and ending hex address range 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 not program the target memory range specified below. Ensure code is NOT code protected. |
Preserve Memory Range(s) (hex)2 | The starting and ending hex address range in target memory to preserve when programming, reading, or verifying. This memory is read from the target and overlayed with existing MPLAB X IDE memory. |
Note 1: Each range must be two hex numbers, representing the start and end addresses of the range, separated by a dash. Ranges must be separated by a comma (e.g. 0-FF, 200-2FF). Ranges must be aligned on a device-specific address boundary.
Note 2: Each range must be two hex numbers, representing the start and end addresses of the range, separated by a dash. Ranges must be separated by a comma (e.g. 0-FF, 200-2FF). Areas are reserved by reading them into the IDE and then programming them back down when a program operation occurs. Thus the preserved areas must lie within a memory range that will be programmed.