Set a Data Breakpoint

To set a data breakpoint:


Open the New Breakpoint Window

Main Menu:
Debug ▶ New Breakpoint…



Click image to enlarge.


Choose Data Breakpoint Type

In the Breakpoint Type drop-down box, choose Data.

Click image to enlarge.


Configure Breakpoint Settings

Choose a data memory location by its Symbol or its Address. If choosing by symbol, click on the Symbols button.

Click image to enlarge.


If you clicked the Symbols button:

To set a breakpoint on a global variable, select the Global Symbols radio button, then choose the variable name from the list.

To set a breakpoint on a Special Function Register (SFR), select the SFR radio button, then choose the register name from the list.

Click OK when done.


Choose Pass Count Condition

The default Pass Count is Always Break where the program will halt each time the breakpoint's conditions are met.

Break occurs Count instructions after Event will halt the program by a specified number of instructions/instruction cycles after the breakpoint's conditions are met.

Event must occur Count times will halt the program after the breakpoint's conditions have been met a specified number of times.

Click image to enlarge.


Close Window

Click OK

© 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.