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.

Running the program automatically after launching it

Other Parts Discussed in Thread: TMS320F2812

Hello,

I am using CCS 5.3.0.00090 to program the digital signal controller TMS320F2812. After clicking the Debug button the program is launched, but the program execution halts at the main routine. One has to click Resume to run it, as if there was a breakpoint before the line int main(). Is it possible to have the program run right after launching it, without the extra invitation?

Sincerely,

Adrian

  • Hi Adrian,

    this can be configured in the general debug properties.  Project->Properties->Debug ... see the screenshot below.

    Please keep us informed whether this helps as requested.

    Best Regards,
    Lisa

  • Hello Lisa,

    The window looks slightly different with me, but it shows the same options:

    Which of the settings is the one you are talking about?

    Regards,

    Adrian

  • Hi Adrian,

    please have a careful look at the options.  In particular notice the default in the auto run section is to run to main on program load or restart.  You can change this which should help you.   If you want no interfere you can launch a debug session and choose to do a "free run".

    Best Regards,

    Lisa

  • Hi Lisa,

    Whether the option "On a reset" is set or not does not have an effect in my case. When I unchecked "On a program load or restart", the error message

    Can't find a source file at "/tmp/TI_MKLIBtaY1Nh/SRC/boot28.inc" Locate the file or edit the source lookup path to include its location.

    appeared. I located that file and included it. Then upon launching this file is opened and the instruction pointer is set to the line

    MOV      SP,#__stack        ; set to beginning of stack space

    So this did not quite help. If the trick is in changing the "Run to symbol", what should I enter there?

    The purpose of my query is to keep the time that the digital outputs are high (from the reset default) as short as possible. Does the free run help in this case, too?

    Regards,

    Adrian

  • Hi Adrian,

    you can leave it blank, but I am wondering if free run is best for you.  Basically free run loads and starts the code and then essentially disconnects from the emulator.  Is this the type of behaviour you would like?

    Best Regards,
    Lisa

  • Hi Lisa,

    Leaving the "Run to symbol" field blank does the trick.

    Free run only seems to be available once I click on debug and the program halts somewhere. From your description it sounds like it works the same as the above, but one does not have the opportunity to place breakpoints. Is that so?

    Adrian

  • Hi Adrian,

    glad that works for you and thanks for updating.  You are correct free run would not really be compatible with breakpoints.

    All the best with development.

    Best Regards,
    Lisa