ARM Technical Support Knowledge Articles

HALTING EXECUTION IN A SIGNAL FUNCTION

Applies to: uVision Debugger

Answer


Information in this article applies to:


QUESTION

I'm writing a lot of signal and user functions for the uVision Debugger. Is there a way for my functions to stop program execution in the debugger?

ANSWER

Yes. The System Variable _break_ allows you to do just that. When you set _break_ to a non-zero value, the uVision Debugger halts target program execution. For example:

signal void sigfunc (void) {
while (1) {
  twatch (10000);  /* Delay for 10,000 ticks */
  _break_ = 1;     /* Halt program execution */
  }
}

This function halts program execution every 10,000 cycles.

Article last edited on: 2004-06-29 10:44:05

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential