Keil™, An ARM® Company

µVision® User's Guide

Breakpoints Dialog

µVision3 also supports complex breakpoints as discussed on page 109. You may want to halt program execution when a variable contains a certain value. The example shows how to stop when the value 3 is written to current.time.sec.

Breakpoints Dialog

Open the Breakpoints dialog from the Debug menu. Enter as expression current.time.sec==3. Select the Write check box (this option specifies that the break condition is tested only when the expression is written to). Click on the Define button to set the breakpoint.

To test the breakpoint condition perform the following steps:

SymbolDescription
Reset ButtonReset CPU.
Run ButtonIf program execution is halted begin executing the MEASURE program.

After a few seconds, µVision3 halts execution. The program counter line in the debug window marks the line in which the breakpoint occurred.