User manual
Frequently Asked Questions (FAQ)
© 2008 Microchip Technology Inc. DS51616B-page 87
}
:
- Use ASSERTs.
• I have finished debugging my code. Now I’ve programmed my part, but it won’t
run. What’s wrong?
Some things to consider are:
- Have you selected the emulator as a programmer and then tried to program a
header board? A header board contains an -ICE/-ICD version of the device and
may not function like the actual device. Only program regular devices with the
emulator as a programmer. Regular devices include devices that have on-board
ICE/ICD circuitry, but are not the special -ICE/-ICD devices found on header
boards.
- Have you selected the emulator as a debugger and then tried to program a regu-
lar device? Programming a device when the emulator is a debugger will program
a debug executive into program memory and set up other device features for
debug (see Section 2.7.1 “Sequence of Operations Leading to Debugging”.)
To program final (release) code, select the emulator as a programmer.
- Have you selected “Release” from the Build Configuration drop-down list or Proj-
ect menu? You must do this for final (release) code. Rebuild your project, repro-
gram the device, and try to run your code again.
• I didn’t set a software breakpoint, yet I have one in my code. What’s going on?
What you are seeing is a phantom breakpoint. Occasionally, a breakpoint can
become enabled when it shouldn’t be. Simply disable or delete the breakpoint.
• I don’t see my problem here. Now what?
Try the following resources:
- Chapter 10. “Limitations”
- Section 2.9 “Resources Used by the Emulator”
- Section 10.2 “Specific Error Messages”
- Section 10.3 “General Corrective Actions”