ARM Technical Support Knowledge Articles

CREATING INI FILES

Applies to: uVision Debugger

Answer


Information in this article applies to:


QUESTION

How do I create a debugger script file that runs when I start the uVision Debugger?

ANSWER

Debugger script files are plain text files that contain debugger commands. These files are not created by the tools. You must create them to suit your specific needs. Typically, they are used to configure the debugger or to setup or initialize something prior to running the program.

Following is an example or a typical debugger script file.

/*-------------------------------------------*/
/* Set Watchpoints                           */
/*-------------------------------------------*/

ws myvar
ws myvar2


/*-------------------------------------------*/
/* Create a Signal Function                  */
/*-------------------------------------------*/

signal void bob(void) {
  while (1) {
    twatch (5000);          /* Delay for 5,000 clocks */
    P1 = ~P1;               /* Toggle P1 Pins */
  }
}


/*-------------------------------------------*/
/* Change the program start address          */
/*-------------------------------------------*/

$=0x1000


/*-------------------------------------------*/
/* Run the Program (stop at main)            */
/*-------------------------------------------*/

g, main

All of the commands discussed in the uVision User's Guide may be used in a script file.

MORE INFORMATION

SEE ALSO

Article last edited on: 2007-01-10 11:15:18

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