Keil Logo

µVISION DEBUGGER: AUTOMATED TEST NEVER STOPS


Information in this article applies to:

  • µVision Version 3 and Later

QUESTION

I want to run µVision as an automated test tool and I have created a test script file (named TEST.INI) as shown below:

g, _test_end;
printf ("Done\n");

I entered the script filename (TEST.INI) in the Project — Options for Target — Debug — Simulator Initialization File text box. The script seems to work, however it appears that program execution never stops despite the fact that my program reaches the function _test_end.

What can be wrong?

ANSWER

Check if you have enabled the option Run to main () under Project — Options for Target — Debug.

µVision executes the commands of the dialog Project — Options for Target — Debug in the following order:

  1. When Load Application at Startup is enabled, the debugger loads the file stated under Project — Options for Target — Output — Name of Executable
  2. Execute the commands in the Initialization File
  3. When Run to main () is enabled the command G, main is executed.

Since your program has already reached the label _test_end which is most likely after main the command G, main results in an endless program execution.

MORE INFORMATION

SEE ALSO

Last Reviewed: Friday, January 12, 2007


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.