Keil™, An ARM® Company

Technical Support

µVISION DEBUGGER: CREATING INI FILES


Information in this article applies to:

  • µVision Version 2 and Later

QUESTION

How do I create a debugger script file that runs when I start the µVision 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 µVision User's Guide may be used in a script file.

MORE INFORMATION

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Wednesday, January 10, 2007


Did this article provide the answer you needed?
 
Yes
No
Not Sure