This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

.out file auto run when invoking DSS loadProgram() in CCS 5.3

Hi,


I am developing C674 program and tried to use DSS script to asynchronized run the .out file.

But I found sometimes when invoking DSS loadProgram(), the .out file is automatically run, and it is a synchronized run. This is what I do not expect.

Does anyone know how to avoid the auto run when invoking DSS loadProgram()?

Thanks!

- Xiang Hui

-----------------------------------------------------------------------------------

More Information:

I tried to find out when it is auto run and when not. After some test, I found the following case can trigger the auto run.

There are 2 cpp files:   a.cpp and b.cpp

The following function is implemented in b.cpp

int test()

{

    return 1;

}

and the code in a.cpp invokes test().


In this case, when DSS loadProgram() is invoked, the .out file is synchronized auto run.

But, if I move the implement code of test() from b.cpp to a.cpp, that means the test() and its invoke code are in the same file - a.cpp, the .out shall not auto run when DSS loadProgram() is invoked.

By the way, the test() is invoked in a thread(OSAL thread).

  • Hello,

    The default behavior of the debugger is to auto-run to a label on program load. The default label is 'main'. So if you program has a 'main', it will run to it and then halt. If it does not, it will just continue to run until some breakpoint is encountered. You can disable this behavior (or change the label to run to) by changing the debugger properties.

    There is a DSS APIs to change the debugger properties. See the below wiki topic on how to do this:

    http://processors.wiki.ti.com/index.php/Debug_Server_Scripting#Debugger_Properties

    Try this first. Strange scenario you describe later I'm not sure what is going on. Hopefully changing the debugger options will help.

    thanks

    ki