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.

[FAQ] How to assert breakpoints before the main() function in CCS

I want to add breakpoints before the main() function as currently the program automatically runs to main and breakpoints in the startup code before main don’t work. How can I configure my projects to not run to main and stop at any breakpoint added before that?

  • Hi,

    To do this via CCS:

    • Select the project that you want to put a breakpoint before main() on



    • Go-to Project in the menu bar





    • Select Properties





    • Go-to Debug -> Auto Run and Launch Options





    • Untick “On a program load or restart”





    • Resume the Program with ‘F5’. It can be seen that the program doesn’t run to main.


      Note:  the symbols may not be linked correctly for 0x0 so single step is recommended for correct debug information



    • Now select and set a Breakpoint as shown below. Here we’ll choose the hello_world_main() function in the hello_world example.







    • The program now stops at breakpoints you set before the main() function. 



    See slides 33 & 35 of the tips and tricks.