
dsPICDEM™ MCHV-3 Development Board User’s Guide
DS50002505A-page 30
2016 Microchip Technology Inc.
2.4.5
Programming an Application
When the program is successfully debugged and running, the next step is to program
the device for stand-alone operation in the finished design. When doing this, the
resources reserved for debug are released for use by the application. To program the
application, use the following steps:
1. Select
Debug>Finish Debug Session
or click the
Finish Debug Session
icon to
exit Debug mode.
2. Select
Run>Run Project
or click the
Run Project
icon to build the application,
program the device and release it from Reset. Alternatively, click the
Make and
Program Device
icon to build the application and program the device (this action
does not release the device from Reset).
At this point, the application code will run independently.
2.4.6
Determining Device Support and Reserved Resources
Due to the built-in in-circuit debugging capability of MPLAB ICD 3 devices, and the
In-Circuit Serial Programming™ (ICSP™) function offered by the debugger, the Starter
Kit on the board uses some on-chip resources when debugging. It also uses program
memory and file register locations in the target device during debugging. These loca-
tions are not available for use by user code. In MPLAB X IDE, registers marked with an
“R” in the register display represent reserved registers.
2.4.7
Troubleshooting
2.4.7.1
DEBUG CONNECTION PROBLEMS
While using the Starter Kit on the board as a debugger, you may receive the error,
“Starter Kits (PKOB) not found”, when programming the device. This can result from
communication being lost between the Starter Kit on the board and MPLAB X IDE. To
resolve this:
1. Unplug the USB cable from the Starter Kit.
2. Plug the USB cable back into the Starter Kit.
MPLAB X IDE should automatically reconnect to the Starter Kit on the board and dis-
play its Serial Number (SN) in the same dialog box. Click the serial number, followed
by
OK
to continue. If this does not work, do the following:
1. Check the USB connection between the PC and Starter Kit at both ends.
2. If using a USB hub, make sure it is powered.
3. Make sure the USB port is not in use by another device.
2.4.7.2
PROGRAMMING PROBLEMS
If, during the course of developing your own application, you can no longer program the
device, you may have set device Configuration bits to code-protect or some other state
that prevents programming. To view the settings of the Configuration bits, select
Window>PIC Memory Views>Configuration bits
.
2.4.8
Starter Kit On-Board Information Tab
The firmware version and Operating System (OS) version of the Starter Kit on the board
can be obtained from the Project Dashboard window of MPLAB X IDE. The Project
Dashboard window also displays other useful information, such as the Starter Kit
on-board V
DD
, target Device ID and target Device ID revision.
Содержание dsPICDEM MCHV-3
Страница 1: ... 2016 Microchip Technology Inc DS50002505A dsPICDEM MCHV 3 Development Board User s Guide ...
Страница 3: ...Object of Declaration dsPICDEMTM MCHV 3 Development Board ...
Страница 4: ...dsPICDEM MCHV 3 Development Board User s Guide DS50002505A page 4 2016 Microchip Technology Inc NOTES ...
Страница 6: ...dsPICDEM MCHV 3 Development Board User s Guide DS50002505A page 6 2016 Microchip Technology Inc NOTES ...
Страница 8: ...dsPICDEM MCHV 3 Development Board User s Guide DS50002505A page 8 2016 Microchip Technology Inc NOTES ...
Страница 14: ...dsPICDEM MCHV 3 Development Board User s Guide DS50002505A page 14 2016 Microchip Technology Inc NOTES ...
Страница 27: ...Getting Started 2016 Microchip Technology Inc DS50002505A page 27 FIGURE 2 7 MPLAB X IDE WORKSPACE ...
Страница 48: ...dsPICDEM MCHV 3 Development Board User s Guide DS50002505A page 48 2016 Microchip Technology Inc NOTES ...
Страница 67: ...Index 2016 Microchip Technology Inc DS50002505A page 67 NOTES ...