Programming; Resources Used By The Debugger - Microchip Technology MPLAB ICD 4 User Manual

Hide thumbs Also See for MPLAB ICD 4:
Table of Contents

Advertisement

Another way to set a breakpoint is to select Debug>Pause. This toggles the PGC and
PGD lines so that the in-circuit debug mechanism of the target device switches the
Program Counter from the user's code in program memory to the debug executive.
Again, the target application program is effectively halted, and MPLAB X IDE uses the
debugger communications with the debug executive to interrogate the state of the
target device.
2.6

PROGRAMMING

Use the MPLAB ICD 4 as a programmer to program a non -ICE/-ICD device, i.e., a
device not on a header board. Set the MPLAB ICD 4 In-Circuit Debugger as the current
tool (File>Project Properties) to perform these actions:
• When Run>Run Main Project is selected, the application code is programmed into
the device's memory via the ICSP protocol. No clock is required while program-
ming, and all modes of the processor can be programmed – including code pro-
tect, Watchdog Timer enabled, and table read protect.
• 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.
• 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.
• The target device is run in Release mode. As a programmer, the debugger can
only toggle the MCLR line to Reset and start the target device.
2.7

RESOURCES USED BY THE DEBUGGER

For a complete list of resources used by the debugger for your device, see the online
Help file in MPLAB X IDE for the MPLAB ICD 4 In-Circuit Debugger. From the MPLAB
X IDE "Learn & Discover" page, click on Users Guide & Release Notes, then click on
the link for the "Reserved Resources for MPLAB ICD 4."
 2017 Microchip Technology Inc.
Operation
DS50002596A-page 25

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MPLAB ICD 4 and is the answer not in the manual?

Table of Contents