Table: Debug vs. Program Operation
|
|
|
|
|
|
A computer and target application (Microchip demo board or your own design)
|
Debugger, USB cable, and power supply (if needed)
|
Device with on-board debug circuitry or debug header with special -ICE device
|
Device (with or without on-board debug circuitry)
|
|
|
Project Properties, ICD 4 as Hardware Tool
|
Debug Main Project icon 
|
Make and Program Device icon 
|
|
|
Programs application code into the device. Depending on the selections on the Project Properties dialog, this can be any range of program memory. In addition, a small debug executive is placed in program memory and other debug resources are reserved.
|
Programs application code into the device. Depending on the selections on the Project Properties dialog, this can be any range of program memory.
|
|
|
All for device – breakpoints, etc.
|
|
Serial Quick-Time Programming (SQTP)
|
|
Use the MPLAB IPE to generate the SQTP file.
|
|
|
Use MDB command line utility, found by default in:
C:\Program Files (x86)\ Microchip\MPLABX\v4.15.11\ mplab_platform\bin\mdb.bat
|
Use IPECMD, found by default in: C:\Program Files (x86)\ Microchip\MPLABX\<vx.xx>\ mplab_platform\ mplab_ipe\ipecmd.exe.
|