Hardware Breakpoints

A hardware breakpoint is an event whose execution will cause a halt. Hardware breakpoints are implemented with comparison registers built into the target microcontroller. Upon a match with the item being watched, the program halts and control is transferred to the debug executive.

Tools_Options_Embedded.png Hardware Breakpoints in MPLAB® X

Icon Hardware Breakpoint Type
LineBreakpoint.png Line Breakpoint
AddressBreakpoint.png Address Breakpoint
DataBreakpoint.gif Data Breakpoint
EventBreakpoint.gif Event Breakpoint
SequenceBreakpoint.gif Sequence Breakpoint (Complex)
TupleBreakpoint.gif Tuple Breakpoint (Complex)

Available Breakpoints

Hardware breakpoints are limited in number (typically three or four). The actual number depends on the target microcontroller's hardware. The Dashboard window shows the number of available breakpoints by type and also keeps track of the number of breakpoints you have used. You can access this window by going to the top menu and then selecting Window > Dashboard.

MPLAB X IDE will automatically use hardware breakpoints by default.

Resources.png

Limitations

For limitations on breakpoint operation, including skidding amounts and the general number of hardware breakpoints per device, see the online help file in MPLAB X IDE (Limitations - Emulators and Debuggers section).

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.