Keil Logo

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:

Symbol Description
Reset Button Reset CPU.
Run Button If 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.

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.