Set an Address Breakpoint in MPLAB® X IDE

To set an address 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 Address Breakpoint Type

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

Address-Set2.png
Click image to enlarge.

3

Configure Breakpoint Settings

Enter a valid memory address in the Address box.

Next, choose the 'Breaks on' condition. In most cases, you will want to use the default, Program Memory Execution. The other options are for triggering on table reads and table writes which make use of specific PIC® microcontroller or dsPIC® digital signal controller instructions. These settings are only useful if you explicitly use these table read/write instructions through inline assembly or assembly language files.

Address-Set3.png
Click image to enlarge.

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.

Address-Set4.png
Click image to enlarge.

5

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.