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.

Is auto-resume (F8) possible?

Hi!

In CCS 5.3 each time I start a debug session I click on the "bug symbol" and then need to press F8 to actually resume my program.

Is there an auto-resume option that automatically starts debug when I click on the "bug" and then resumes my program as if I had pressed F8 manually?

Thanks,

Anguel

  • Anguel,

    The debugger has a configuration switch that allows running a program to a symbol (i.e., function) after load, reset, etc. However, it does not have a configuration for a "run free" by design, as it supposes that, if you are using a debugger, you intend to actually halt it to debug the firmware.

    You could potentially create a dummy symbol that is never reached, thus running your code freely after connecting and/or after reset.

    Check slides 40 thru 47 of the CCSv5 Tips and Tricks presentation at:

    http://processors.wiki.ti.com/index.php/Tips_and_Tricks_for_CCStudio_IDE

    Hope this helps,

    Rafael

  • Rafael,

    Thank you for the reply. Actually, I thought of entering a non-existing symbol that is never reached but thought that there might be a more elegant solution.

    I don't know how other people debug their programs but in a big program I always set breakpoints or just press pause at some point and watch some vars, so I always have to press F8 first after starting a debug session. That is an extra step and very annoying if I am waiting for some external triggers and just realize that I have forgotten to press F8.

    I really wonder that other people have not asked for that handy feature.

    Once again, thank you for your help.

    Anguel

  • Rafael,

    Unfortunately, your suggestion with the dummy symbol (eg. "RUN_FOREVER") does NOT work. The following error is output by CCS:

    AutoRun: Target not run as the symbol "RUN_FOREVER" is not defined

    Fortunately, I found the solution in another thread here in the forum.

    The trick is to leave the "Run to symbol" field EMPTY. See:

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/241840.aspx

    Anguel

  • Anguel,

    Just clarifying, my suggestion was to "create a dummy symbol that is never reached", not to point to a non-existing symbol.

    Anyways, I am glad to know that leaving the field blank works in a similar fashion.

    Regards,

    Rafael

  • Rafael,

    Sorry for misunderstanding your suggestion.But now we have an even more universal solution :-)

    Thank you once again.

    Anguel