User`s guide
© 2006 Microchip Technology Inc. DS51519B-page 249
MPLAB
®
IDE
USER’S GUIDE
Chapter 20. Simulator Troubleshooting
20.1 INTRODUCTION
This section is designed to help you troubleshoot any problems, errors or issues you
encounter while using MPLAB SIM. If none of this information helps you, please see
Support for ways to contact Microchip Technology.
• Common Problems/FAQ
• Limitations
20.2 COMMON PROBLEMS/FAQ
• The simulator does not use the stimulus file I created
• I cannot attach more than one register stimulus file to a register
• My UART input file is not working
• I cannot set conditional breakpoints
• The symbolic breakpoints I set in the Breakpoint dialog do not work
• The simulator is not recognizing my breakpoints, although they seem to be set
and enabled in my code windows
• I cannot reset my program using MCLR
• My program keeps resetting
• The simulator is not halting on WDT time-out
• For PIC18 devices, the SFR window is not updating for Timers 1 and 3.
• No data in the logic analyzer
• Animation doesn’t work
The simulator does not use the stimulus file I created
If your file is incorrect, the simulator will not notify you; it will simply ignore its contents.
You should only set up your stimulus files using either:
- the SCL Generator and Stimulus Controller dialogs
- the Pin Stimulus and File Stimulus dialogs (PIC17 Devices)
Do not edit files externally.
In addition, there may be pin/port interaction concerns. See the documentation for the
type of stimulus you are using.
I cannot attach more than one register stimulus file to a register
MPLAB SIM only allows one register stimulus file (.rsti) per register in stimulus for
PIC17 MCU devices.
My UART input file is not working
Ensure that the data file begins with a wait statement.
The UART data file is attached and treated like real hardware injection. If there is no
initial wait statement, the data is consumed at the default baud rate, often before the
UART can even initialize.