Set a Data Breakpoint

To set a data breakpoint:

1

Open the New Breakpoint Window

Main Menu:
Debug ▶ New Breakpoint…

Keyboard:

Ctrl+Shift+F8

Menu-NewBreakpoint.png
Click image to enlarge.

2

Choose Data Breakpoint Type

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

Data-Set2.png
Click image to enlarge.

3

Configure Breakpoint Settings

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

Data-Set3.png
Click image to enlarge.

Data-Set3a.pngData-Set3b.png

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.

4

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.

Data-Set4.png
Click image to enlarge.

5

Close Window

Click OK

20th Annual
Microchip MASTERs Conference 2016
Register now - Deadline: July 29

JW Marriott Desert Ridge Resort-Phoenix, AZ

© 2016 Microchip Technology, Inc.
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.