User Guide
Debugger Function Summary
2018 Microchip Technology Inc. DS50002751C-page 55
A.3.2 Debug
If this option is available for the project device, you can select to use software
breakpoints.
A.3.3 Program
Choose to erase all memory before programming or to merge code.
Program Memory Range(s) (hex) The range(s) of program memory to be programmed.
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
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 Enabling this option will cause the current program
memory on the device to be read into MPLAB X
IDE's memory and then reprogrammed back to the
target device when programming is done. The
range(s) of program memory that will be preserved is
determined by the Preserve Program Memory
Range(s) option below.
Preserve Program Memory Range(s)
(hex)
The range(s) of program memory to be preserved.
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 MPLAB X 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.
Preserve ID Memory Check to not erase Memory when programming,
where Memory is the type of memory. Types include:
EEPROM, ID, Boot Flash, Auxiliary.
TABLE A-2: DEBUG OPTION CATEGORY
Use Software
Breakpoints
Check to use software breakpoints. Uncheck to use hardware break-
points. See discussion below to determine which type is best for your
application.
TABLE A-3: PROGRAM OPTION CATEGORY
Erase All Before Program Enabling this option will cause the entire device to be erased
prior to programming the data from MPLAB X IDE. Any memory
areas designated to be preserved will be read before the device
is erased and reprogrammed on the device when the device is
programmed.
Unless programming new or already erased devices, it is
important to have this box checked. If not checked, the device is
not erased and program code will be merged with the code
already in the device.
Programming mode entry This options designates the method the PICkit 4 will use to put
the target device in programming mode. For the low voltage
method, V
PP will not exceed the VDD supply voltage. Instead a
test pattern will be used on V
PP. For the high-voltage method, a
voltage in excess of 9 volts will be place on V
PP.
LED Brightness Setting Select the level of brightness from 1 (darkest) to 10 (brightest).
TABLE A-1: MEMORIES TO PROGRAM OPTION CATEGORY (CONTINUED)