| |||||
Technical Support Support Resources
Product Information | µVISION DEBUGGER: CREATING INI FILESInformation in this article applies to:
QUESTIONHow do I create a debugger script file that runs when I start the µVision Debugger? ANSWERDebugger 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 ALSOFORUM THREADSThe following Discussion Forum threads may provide information related to this topic. Last Reviewed: Wednesday, January 10, 2007 | ||||
| |||||