Mplab Pickit4 Debugger Ug Ds50002751a
Mplab Pickit4 Debugger Ug Ds50002751a
In-Circuit Debugger
User’s Guide
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
CERTIFIED BY DNV All other trademarks mentioned herein are property of their
respective companies.
Object of Declaration:
EU Declaration of Conformity
NOTICE TO CUSTOMERS
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs
and/or tool descriptions may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
page, in front of the page number. The numbering convention for the DS number is
“DSXXXXXXXXA”, where “XXXXXXXX” is the document number and “A” is the revision level
of the document.
For the most up-to-date information on development tools, see the MPLAB® X IDE online
Help. Select the Help menu, and then Topics to open a list of available online Help files.
INTRODUCTION
These topics contain general information that will be useful to know before using the
MPLAB® PICkit™ 4 In-Circuit Debugger. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Recommended Supplemental Reference
DOCUMENT LAYOUT
This document describes how to use the MPLAB® PICkit™ 4 In-Circuit Debugger as a
development tool to emulate and debug firmware on a target board, as well as how to
program devices. The document is organized as follows:
Part 2 – Troubleshooting
• Chapter 4. Troubleshooting First Steps – The first things you should try if you
are having issues with debugger operation.
• Chapter 5. Frequently Asked Questions (FAQs) – A list of frequently asked
questions, useful for troubleshooting.
• Chapter 6. Error Messages – A list of error messages and suggested
resolutions.
Part 3 – Reference
• Appendix A. Debugger Function Summary – A summary of debugger functions
available in MPLAB® X IDE when the MPLAB® ICD 4 debugger is chosen as the
debug or program tool.
• Appendix B. Hardware Specification – The hardware and electrical
specifications of the debugger system.
• Appendix C. Revision History
1.This functionality is coming soon with a firmware update of the product through MPLAB X IDE.
Features/Capabilities:
• Connects to computer via high-speed USB 2.0 (480 Mbits/s) cable
• An 8-pin SIL programming connector and the option to use various interfaces
• Programs devices using MPLAB X IDE or MPLAB IPE
• Supports multiple hardware and software breakpoints, stopwatch, and source
code file debugging
• Debugs your application on your own hardware in real time
• Sets breakpoints based on internal events
• Monitors internal file registers
• Debugs at full speed
• Configures pin drivers
• Field-upgradeable through an MPLAB X IDE firmware download
• Adds new device support and features by installing the latest version of MPLAB X
IDE (available as a free download at http://www.microchip.com/mplabx/)
• Indicates debugger status via the indicator light strip
Performance/Speed:
• More and faster memory
• A Real-Time Operating System (RTOS)
• No firmware download delays incurred when switching devices
• A 32-bit MCU running at 300 MHz
Safety:
• Receive feedback from debugger when external power supply is needed for target
• Supports target supply voltages from 1.2V to 5.5V
• Protection circuitries are added to the probe drivers to guard from power surges
from the target
• VDD and VPP voltage monitors protect against overvoltage conditions/all lines
have over-current protection
• Programming/debugging pins are physically isolated until voltage is determined to
be safe for connection, programmable resistor value, and direction (pull-up,
pull-down, or nonexistent).
• Controlled programming speed provides flexibility to overcome target board
design issues
• CE and RoHS compliant – conforms to industry standards
Additional hardware and accessories may be ordered separately from Microchip Direct
(http://www.microchipdirect.com/).
• Transition sockets
• ICD headers
• MPLAB processor extension kits
SAME70
MICRO
VDD MONITOR
SCALERS
VPP MONITOR
VPP ON VPP
ICSP SIP
VPP AN0 GEN
OVERCURRENT
(SPI)
VOLTAGE VREF
REFERENCE
VDD
GEN
SYSTEM (I2C) VDD ON
IDENTIFIERS VDD AN1
OVERCURRENT
PGM (HSMCI)
+5.5v
uSD CARD
+5.5v SWITCHER
TVDD
BOOST
VUSB +5v
PWR +3.3V
DIST RGB LED
The debugger is connected to the computer via a USB cable for communication and
debugger power.
The debugger is connected to the target application for communication and data
collection and optional debugger power.
The debugger system configurations are discussed in the following sections.
CAUTION
Communication Failure.
Do not connect the hardware before installing the software and
USB drivers.
CAUTION
Debugger or Target Damage.
Do not change hardware connections while the debugger or target
is powered.
Note: The MPLAB PICkit 4 in-circuit debugger is warrantied for operation using
the provided cable. Cables from other vendors may result in
communication errors.
MPLAB PICkit 4
Target Device
or PIM
Micro-B USB
cable to computer
Target Board
Header
(if needed)
Power
Micro-B USB
cable to
computer
MPLAB PICkit 4
Header
(if needed)
Device-ICE
Transition Socket
Header Power
Target Board
Target
Connector
PGD
2 4 6 LVP
VDD
PGC
1 3 5
Target
VPP/MCLR
Vss PCB
Bottom Side
VDD 2
MPLAB PICkit 4
Device 10-50k
VPP/MCLR 1
PGC 5
PGD 4
VSS 3
AVDD
AVSS Interface
Connector
MPLAB PICkit 4
Micro-B USB
Target Board cable to computer
Max Power
to Target
MPLAB PICkit 4
is 50 mA Hub
USB cable
to computer
Micro-B USB
cable to Hub
Target Board
Not all devices have the AVDD and AVSS lines, but if they are present on the target
device, all must be connected to the appropriate levels in order for the debugger to
operate. They cannot be left floating.
Also, devices with a VCAP line (PIC18FXXJ for example) should be connected to the
appropriate capacitor or level.
Note: The interconnection is very simple. Any problems experienced are often
caused by other connections or components on these critical lines that
interfere with the operation of the MPLAB PICkit 4 In-Circuit Debugger, as
discussed in the following section.
VPP/MCLR 1
No! MPLAB PICkit 4
No!
No!
PGC 5
4
PGD
Interface
No! Connector
2.4 DEBUGGING
There are two steps to using the MPLAB PICkit 4 In-Circuit Debugger system as a
debugger. The first requires that an application be programmed into the target device
(usually with the MPLAB PICkit 4 itself). The second uses the internal in-circuit debug
hardware of the target Flash device to run and test the application program. These two
steps are directly related to the MPLAB X IDE operations:
1. Programming the code into the target and activating special debug functions.
2. Debugging the code using features such as breakpoints.
Note: For information on debugging, refer to the MPLAB X IDE online Help.
If the target device cannot be programmed correctly, the MPLAB PICkit 4 In-Circuit
Debugger will not be able to debug.
Programming VDD
Voltage
+5V 1
VPP/MCLR
Internal Circuits
5
PGC
4
PGD
VSS
For programming, no clock is needed on the target device, but power must be supplied.
When programming, the debugger puts programming levels on VPP/MCLR, sends
clock pulses on PGC and serial data via PGD. To verify that the part has been
programmed correctly, clocks are sent to PGC and data is read back from PGD. This
sequence confirms the debugger and device are communicating correctly.
Internal Target
VDD must
Debug be
Registers Running
+12V for Debug
1 Executive
+5V VPP/MCLR
Debug to Function
Internal Circuits
Executive
Area
PGC Reserved
for Debug
5 Executive
Program
Memory
4
PGD
Hardware
Stack Shared
by Debug Exec
Area Used by
Debug Exec File
Registers
To find out whether an application program will run correctly, a breakpoint is typically
set early in the program code. When a breakpoint is set from the user interface of
MPLAB X IDE, the address of the breakpoint is stored in the special internal debug
registers of the target device. Commands on PGC and PGD communicate directly to
these registers to set the breakpoint address.
Next, the Debug>Debug Main Project function is usually selected in MPLAB X IDE. The
debugger will then tell the debug executive to run. The target will start from the Reset
vector and execute until the Program Counter reaches the breakpoint address that was
stored previously in the internal debug registers.
2.6 PROGRAMMING
Note: For information on programming, refer to the MPLAB X IDE online Help.
• A small “program executive” program may be loaded into the high area of
program memory for some target devices.
• 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.
The MPLAB PICkit 4 In-Circuit Debugger system programs the target using ICSP. VPP,
PGC and PGD lines should be connected as described previously. No clock is required
while programming, and all modes of the processor can be programmed, including
code protection, Watchdog Timer and table read protection.
3. Select which language toolsuite/compiler you want to use for development and
install it on your computer.
4. Launch MPLAB X IDE and open the online Help (Help>Tool Help Con-
tents>MPLAB X IDE Help) for detailed instructions for the creating and setting up
a new project and running and debugging code.
Program Operation Programs application code into the device. Programs application code into the
Depending on the selections on the Project device. Depending on the selections on
Properties dialog, this can be any range of program the Project Properties dialog, this can
memory. In addition, a small debug executive is be any range of program memory.
placed in program memory and other debug
resources are reserved.
Debug Features All for device – breakpoints, etc. N/A
Available
Serial Quick-Time N/A Use the MPLAB IPE to generate the
Programming (SQTP) SQTP file.
Command-line Use MDB command line utility, found by default in: Use IPECMD, found by default in:
Operation C:\Program Files (x86)\ C:\Program Files (x86)\
Microchip\MPLABX\v4.15.11\ Microchip\MPLABX\<vx.xx>\
mplab_platform\bin\mdb.bat mplab_platform\
mplab_ipe\ipecmd.exe.
MPLAB PICkit 4
1 2
USB Cable to
computer To Target Board
or Header
See Section 2.2 “Debugger to Target Communication” for more details and a
diagram.
All Baseline and some Mid-Range PIC microcontrollers require a special –ICD device
mounted on a debug header circuit board to enable the debugging feature. For a list of
these devices and the required ICD header board part number, please see the
“Processor Extension Pak and Header Specification” (DS50001292).
Each ICD header board comes with the necessary – ICD device and is used on the
target board instead of the production microcontroller. However, most header boards
have an RJ-11 debug connector which requires the AC164110 RJ-11 to ICSP adapter
kit to connect it to MPLAB PICkit 4.
Many Mid-Range PIC microcontrollers and all PIC18 and 16-bit PIC microcontroller
devices do not require an ICD header and can be debugged directly through the ICSP
programming connections.
If you have not already done so, connect the MPLAB PICkit 4 to the target using the
appropriate cables (see Section 3.7 “Connecting the Target Board”). Then power
the target.
To debug an application in MPLAB X IDE, you must create a project that contains your
source code so that the code may be built, programmed into your device, and executed
as specified below:
• To run your code, select either Debug>Debug Main Project or from the Run
toolbar.
• To halt your code, select either Debug>Pause or from the Debug toolbar.
• To run your code again, select either Debug>Continue or from the Debug
toolbar.
• To step through your code, select either Debug>Step Into or from the Debug
toolbar. Be careful not to step into a Sleep instruction or you will have to perform a
processor Reset to resume emulation.
• To step over a line of code, select Debug>Step Over from the Debug toolbar.
• To end code execution, select either Debug>Finish Debugger Session or
from the Debug toolbar.
• To perform a processor Reset on your code, select Debug>Reset from the Debug
toolbar.
Additional Resets, such as POR/BOR, MCLR, and System, may be available,
depending on the device. Refer to the product data sheet for more information.
To help you decide which type of breakpoints to use (hardware or software), the
following table compares the features of each.
7. There may be certain situations where the debugger is not operating properly
and firmware may need to be downloaded or the debugger needs to be repro-
grammed. See the following sections to determine additional actions.
This can occur if the Project Properties Firmware option has the “Use Latest
Firmware” box unchecked and there is a new firmware version available with the
MPLAB X IDE version.
In this case, check the “Use Latest Firmware” box and click the Refresh Debug
Tool Status icon in the MPLAB X IDE dashboard display. If there is still an
asterisk next to the Application version number, or the debugger issue is not
resolved, proceed to the following steps for bootload mode.
Also, refer to Section B.3.2 “Indicator Light Strip” for more information on light strip
modes and bootloader errors.
Perform the following steps to force the debugger into bootload mode:
1. Disconnect the Micro-B USB cable from the debugger.
2. Press down on the MPLAB PICkit 4 logo and hold while plugging in the Micro-B
USB cable. The light strip flashes purple. Continue pressing the logo until the
light strip stops flashing and changes to steady on purple. You are now in boot-
loader mode.
3. Try to reestablish communication with the MPLAB X IDE or MPLAB IPE. When
successful, the firmware update is downloaded. When complete, the LED is
steady on blue and the debugger is ready for operation.
WARNING
Only use this utility to restore hardware tool boot firmware to its factory state.
Use only if your hardware tool no longer functions on any machine.
The debugger may need to be forced into recovery boot mode (reprogrammed) in rare
situations. For example, if any of the following occurs when the debugger is connected
to the computer:
• If the debugger has no LED lit.
• If the procedure described in Section 4.4.2 “How to Invoke the Bootloader
Mode” was not successful.
YOU MUST USE MPLAB X IDE V4.15 OR GREATER TO USE THE EMERGENCY
RECOVERY UTILITY.
Carefully follow the instructions found in MPLAB X IDE under the main menu option
Debug>Hardware Tool Emergency Boot Firmware Recovery.
If the procedure was successful, the recovery wizard displays a success screen. The
MPLAB PICkit 4 will now be operational and able to communicate with the MPLAB X
IDE.
If the procedure fails, try it again. If it fails a second time, contact Microchip Support at
http://support.microchip.com.
NOTES:
Note: The available option categories and the options within those categories are
dependent on the device you have selected.
After setting the options, click Apply or OK. Also click the Refresh Debug Tool status
icon in the MPLAB X IDE dashboard display to update any changes made.
The possible option categories are:
• Memories to Program
• Debug
• Program
• Freeze Peripherals
• Power
• Programmer To Go (coming soon)
• Secure Segment
• Firmware
• Clock
• Communication
A.3.2 Debug
If this option is available for the project device, you can select to use software
breakpoints.
TABLE A-2: DEBUG OPTION CATEGORY
Use Software Check to use software breakpoints. Uncheck to use hardware break-
Breakpoints points. See discussion below to determine which type is best for your
application.
A.3.3 Program
Choose to erase all memory before programming or to merge code.
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, VPP will not exceed the VDD supply voltage. Instead a
test pattern will be used on VPP. For the high-voltage method, a
voltage in excess of 9 volts will be place on VPP.
LED Brightness Setting Select the level of brightness from 1 (darkest) to 10 (brightest).
A.3.5 Power
Select power options.
TABLE A-4: POWER OPTION CATEGORY
Power target circuit from If checked, this option will allow the PICkit 4 to power the target
PICkit 4 circuit. Otherwise an external power supply must be used
(see Section 2.3.4 “Debugger Powered”).
Voltage Level If the “Power Target Circuit from PICkit 4” check box is checked,
select the target VDD (1.2V-5.5V) that the debugger will provide.
1.This functionality is coming soon with a firmware update of the product through MPLAB X IDE.
A.3.8 Firmware
Select and load debugger firmware. MPLAB X IDE automatically downloads the correct
firmware for your project. Only change this setting if you are having issues.
TABLE A-6: FIRMWARE OPTION CATEGORY
Use Latest Firmware Check to use the latest firmware. Uncheck to select the
firmware version.
Firmware File Click in the right-hand text box to search for a firmware file
(.jam) to associate with the debugger.
A.3.9 Clock
Set the option to use the fast internal RC clock for the selected device.
TABLE A-7: CLOCK OPTION CATEGORY
Use FRC in Debug mode When debugging, use the device fast internal RC (FRC) for clock-
(dsPIC33F and PIC24F/H ing instead of the oscillator specified for the application. This is
devices only) useful when the application clock is slow.
Checking this check box will let the application run at the slow
speed but debug at the faster FRC speed.
Reprogram after changing this setting.
Note: Peripherals that are not frozen will operate at the FRC
speed while debugging.
A.3.10 Communication
Set the option(s) to use for your device and type of target communication.
TABLE A-8: COMMUNICATION OPTION CATEGORY
Interface Select the interface from the available options.
Speed (MHz) Enter a speed based on the available range for the inter-
face.
Note: The MPLAB PICkit 4 In-Circuit Debugger is powered through its Micro-B
USB connector. The target board is powered from its own supply.
Alternatively, the MPLAB PICkit 4 can power the target board only if the
target consumes less than 50 mA.
Cable Length – The computer-to-debugger cable, shipped with the debugger kit, is the
correct length for proper operation.
Powered Hubs – If you are going to use a USB hub, make sure it is self-powered. Also,
USB ports on computer keyboards do not have enough power for the debugger to
operate.
Computer Hibernate/Power-Down Modes – Disable the hibernate or other power
saver modes on your computer to ensure proper USB communications with the
debugger.
1. Lanyard Connection - An opening through the top and side for a lanyard (not
included) to be attached.
2. Emergency Recovery Button - If needed, this recessed button is used for Recov-
ery Boot Mode.
3. Micro-B USB Connector - Used to connect the MPLAB PICkit 4 to the computer
with the supplied USB cable.
4. Indicator Light Strip - Displays the operational modes of the MPLAB PICkit 4
in-circuit debugger (see Section B.3.2 “Indicator Light Strip”).
5. Button Area - The area in the center of the shield logo is used for the Program-
mer-To-Go1 option and for invoking the bootloader mode (see
Section 4.4.2 “How to Invoke the Bootloader Mode”).
The following tables provide descriptions of the indicator lights and bootloader errors.
1.This functionality is coming soon with a firmware update of the product through MPLAB X IDE.
MPLAB PICkit 4
1 = NMCLR
1 2 = VDD
2
3 3 = Ground
4
5 4 = PGD
6
7 5 = PGC
8
6 = Do not connect
7 = Unused
8 = Unused
DMCI / DGI
Pin # DGI SPI
U(S)ART / CDC
1
2 VTG
3 GND
4 MISO
5 SCK
6 (SCK)
7 TX MOSI
8 RX SS
Note: Stresses above those listed under “Absolute Maximum Ratings” in the
device’s data sheet may cause permanent damage to the device. This is a
stress rating only and functional operation of the device at those or any
other conditions, above those indicated in the operation listings of this
specification, is not implied. Exposure to maximum rating conditions for
extended periods may affect device reliability.
The debugger does sense target voltage. There is a 182K ohm load on VDD_TGT.
Depending on the type of debugger-to-target communication that is used, there are
some considerations for target board circuitry:
• Section 2.3.2 “Target Connection Circuitry”
• Section 2.3.5 “Circuits That Will Prevent the Debugger From Functioning”
WARRANTY REGISTRATION
If your development tool package includes a Warranty Registration Card, please
complete the card and mail it in promptly. Sending in your Warranty Registration Card
entitles you to receive new product updates. Interim software releases are available at
the Microchip web site.
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
Customers should contact their distributor, representative or field application engineer
(FAE) for support. Local sales offices are also available to help customers. A listing of
sales offices and locations is included in the back of this document. See our web site
for a complete, up-to-date listing of sales offices.
Technical support is available through the support web site:
http://support.microchip.com
Documentation errors or comments may be emailed to [email protected].
E
EEPROM
Electrically Erasable Programmable Read Only Memory. A special type of PROM that
can be erased electrically. Data is written or erased one byte at a time. EEPROM
retains its contents even when power is turned off.
ELF
Executable and Linking Format. An object file of this format contains machine code.
Debugging and other information is specified in with DWARF. ELF/DWARF provide
better debugging of optimized code than COFF.
Emulation/Emulator
See ICE/ICD.
Endianness
The ordering of bytes in a multi-byte object.
Environment
MPLAB PM4 – A folder containing files on how to program a device. This folder can be
transferred to a SD/MMC card.
Epilogue
A portion of compiler-generated code that is responsible for deallocating stack space,
restoring registers and performing any other machine-specific requirement specified in
the runtime model. This code executes after any user code for a given function,
immediately prior to the function return.
EPROM
Erasable Programmable Read Only Memory. A programmable read-only memory that
can be erased usually by exposure to ultraviolet radiation.
Error/Error File
An error reports a problem that makes it impossible to continue processing your
program. When possible, an error identifies the source file name and line number
where the problem is apparent. An error file contains error messages and diagnostics
generated by a language tool.
Event
A description of a bus cycle which may include address, data, pass count, external
input, cycle type (fetch, R/W), and time stamp. Events are used to describe triggers,
breakpoints and interrupts.
Executable Code
Software that is ready to be loaded for execution.
Export
Send data out of the MPLAB IDE/MPLAB X IDE in a standardized format.
Expressions
Combinations of constants and/or symbols separated by arithmetic or logical
operators.
Extended Microcontroller Mode
In extended microcontroller mode, on-chip program memory as well as external
memory is available. Execution automatically switches to external if the program
memory address is greater than the internal memory space of the PIC18 device.
T
Target
Refers to user hardware.
Target Application
Software residing on the target board.
Target Board
The circuitry and programmable device that makes up the target application.
Target Processor
The microcontroller device on the target application board.
Template
Lines of text that you build for inserting into your files at a later time. The MPLAB Editor
stores templates in template files.
Tool Bar
A row or column of icons that you can click on to execute MPLAB IDE/MPLAB X IDE
functions.
Trace
An emulator or simulator function that logs program execution. The emulator logs
program execution into its trace buffer which is uploaded to the MPLAB IDE/MPLAB X
IDE trace window.
Trace Memory
Trace memory contained within the emulator. Trace memory is sometimes called the
trace buffer.
Trace Macro
A macro that will provide trace information from emulator data. Since this is a software
trace, the macro must be added to code, the code must be recompiled or reassembled,
and the target device must be programmed with this code before trace will work.
Trigger Output
Trigger output refers to an emulator output signal that can be generated at any address
or address range, and is independent of the trace and breakpoint settings. Any number
of trigger output points can be set.
Trigraphs
Three-character sequences, all starting with ?? (two consecutive question marks), that
are defined by ISO C as replacements for single characters.
U
Unassigned Section
A section which has not been assigned to a specific target memory block in the linker
command file. The linker must find a target memory block in which to allocate an
unassigned section.
Uninitialized Data
Data which is defined without an initial value. In C,
int myVar;
defines a variable which will reside in an uninitialized data section.
Upload
The Upload function transfers data from a tool, such as an emulator or programmer, to
the host computer or from the target board to the emulator.
C I
Cables ICD Headers ............................................................ 15
Length ............................................................... 61 ICD3CMD................................................................. 28
Capacitors ...........................................................20, 21 ICSP................................................................... 23, 24
Circuits That Will Prevent the Debugger From Func- ID Memory................................................................ 56
tioning ................................................................... 21 Indicator Light Strip ............................................ 62, 63
Clock Speed............................................................. 59 Internet Address, Microchip ..................................... 69
Code Protect ............................................................ 22 L
Command-line Programming ................................... 28
Limitations ................................................................ 29
Communication ........................................................ 59
Computer, Power Down ........................................... 40 M
Configuration Bits................................................22, 28 Maintain active connection to hardware tool ............ 28
Configuration bits set in code................................... 28 Memories to Program............................................... 56
Connector, 6-Pin ...................................................... 63 Memory Ranges....................................................... 56
Customer Support .................................................... 70 Micro SD Card Slot .................................................. 63
D Modular Interface Cable........................................... 22
myMicrochip Personalized Notification Service ....... 69
Debug
Executive .......................................................... 24 P
Debug Mode PC, Power Down................................................ 40, 61
Sequence of Operations ................................... 23 PGC .................................................. 19, 20, 21, 22, 23
Debug, Top Reasons Why You Can’t ...................... 35 PGD .................................................. 19, 20, 21, 22, 23
Debug/Program Quick Reference ............................ 28 PICkit 4 Components ............................................... 15
Debugger Options Selection .................................... 55 PICkit 4 Defined ....................................................... 13
Documentation PIM........................................................................... 18
Conventions ........................................................ 8 Power ....................................................................... 58
Layout ................................................................. 7 Power-Down mode............................................. 40, 61
E Preserve Memory..................................................... 57
Processor Extension Kits ......................................... 15
Emergency Boot Firmware Recovery Utility
Program Speed ........................................................ 36
How to Use ....................................................... 38
Programming
Emergency Recovery Button ................................... 62
Command-line................................................... 28
Erase All Before Program ........................................ 57
Production................................................... 14, 28
F Project Properties Dialog ......................................... 55
Firmware Downloads ............................................... 59 Pull-ups .................................................................... 21
Freeze on Halt ......................................................... 40 Q
Freeze Peripherals Setup ........................................ 58
Quick Reference
G Debug/Program................................................. 28
General Corrective Actions ...................................... 50 R
H Reading, Recommended ........................................... 9
Hardware Tool Emergency Boot Firmware Recovery Readme...................................................................... 9