Tool/software: Code Composer Studio
Is there any way to turn off the automatic break on debug startup feature?
I have looked over the debugger options, but I have not been able to find such an option. Please let me know if I missed something.
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.
Tool/software: Code Composer Studio
Is there any way to turn off the automatic break on debug startup feature?
I have looked over the debugger options, but I have not been able to find such an option. Please let me know if I missed something.
Hello,
Note that after a program is loaded, the debugger set the program counter to the entry point. If the auto-run feature is enabled, it will run to the label specified. By default, the auto-run feature is enabled and the label specified is' main'. This is why CCS auto-runs to 'main' on program load and then stays there. If auto-run is disabled completely, then the program will be halted at the entry-point after program load (usually 'c_int00' in most cases). If you wish to have it auto-run without stopping, make sure auto-run is enabled but have a label that is unreachable or the exit point of the application. This will just have the program run to completion (or run endlessly if it does not self-terminate)
Thanks
ki
Many thanks for your answer!
I have added a main_exit label after my main loop, and changed the main to main_exit.
But now it stops at the c_int00. Maybe the compiler optimized out my label?
I have set my FaultISR as a label to break.