ARM Technical Support Knowledge Articles

AUTOMATED TEST NEVER STOPS

Applies to: uVision Debugger

Answer


Information in this article applies to:


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
");

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

Article last edited on: 2007-01-12 10:09:16

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