Watchpoints in IAR¶
Right-click a variable (global).
Select
Set Data Breakpoint for 'myVar'to add it to the active breakpoints.Go to the list of breakpoints (View –> Breakpoints)
Choose
Edit...to set up whether the watchpoint should match on read, write, or any access.
Configuring a hardware watchpoint to break on 8-bit write with value 0x42.¶