2001 Microchip Technology Inc.
DS51159B-page 141
MPLAB
®
ICE USER’S GUIDE
12
Appendix A. Debugging Techniques
A.1
Introduction
This appendix describes various debugging techniques that you may find
useful when emulating with MPLAB ICE.
A.2
Highlights
This appendix contains the following information:
• Complex Triggering Examples
• Additional Debugging Techniques
A.3
Complex Triggering Examples
The debugging techniques listed below have been previously covered in
Complex Triggering Examples, Section 6.3.5.
A.3.1
Subroutine starts to fail
An application has several subroutines. A particular subroutine (RoutineA)
functions correctly to begin with, but after a time, it begins to function
incorrectly. This subroutine is called many times, so it would be nice to skip
the executions where the subroutine functions properly and break just before
the subroutine starts to fail. It is observed that the routine functions correctly
until another after subroutine (RoutineB) is called.
See Sequential Example - Program Memory.
A.3.2
Flag bit erroneously set
A flag bit is getting erroneously set somewhere. Where is it getting set?
See Sequential Example - Data Memory.
A.3.3
Length of delay loop
An application contains a delay loop. How long is the delay?
See Time Between Events Example.
A.3.4
Trace without long delay loop
A program has a large delay loop. How can program execution be traced
without wading though thousands of delay loop cycles?
See Filter Trace Example - Program Memory.
Содержание MPLAB ICE
Страница 1: ...2001 Microchip Technology Inc DS51159C MPLAB ICE EMULATOR USER S GUIDE M...
Страница 8: ...MPLAB ICE User s Guide DS51159B page viii 2001 Microchip Technology Inc...
Страница 18: ...MPLAB ICE User s Guide DS51159B page 18 2001 Microchip Technology Inc NOTES...
Страница 36: ...MPLAB ICE User s Guide DS51159B page 36 2001 Microchip Technology Inc NOTES...
Страница 58: ...MPLAB ICE User s Guide DS51159B page 58 2001 Microchip Technology Inc NOTES...
Страница 80: ...MPLAB ICE User s Guide DS51159B page 80 2001 Microchip Technology Inc NOTES...
Страница 126: ...MPLAB ICE User s Guide DS51159B page 126 2001 Microchip Technology Inc NOTES...
Страница 129: ...2001 Microchip Technology Inc DS51159B page 129 Verification Figure 7 3 Verify MPLAB ICE Run Mode Tests...
Страница 140: ...MPLAB ICE User s Guide DS51159B page 140 2001 Microchip Technology Inc NOTES...
Страница 158: ...MPLAB ICE User s Guide DS51159B page 158 2001 Microchip Technology Inc NOTES...
Страница 189: ...2001 Microchip Technology Inc DS51159B page 189 Index NOTES...
Страница 190: ...MPLAB ICE User s Guide DS51159B page 190 2001 Microchip Technology Inc NOTES...
Страница 191: ...2001 Microchip Technology Inc DS51159B page 191 Index NOTES...