Keil Logo

µVISION DEBUGGER: HALTING EXECUTION IN A SIGNAL FUNCTION


Information in this article applies to:

  • µVision Version 2.06

QUESTION

I'm writing a lot of signal and user functions for the µVision 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 µVision 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.

Last Reviewed: Tuesday, June 29, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  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.