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.

Questions about debug in CCS5.

Hello,

CCS v5.0.2

When I try to use breakpoint, it doesn't work. I have set the speed optimization to 0.

Another question is that error occurs when trying to run to a given line:

Run To Line failed.
  Failed executing run to line
    Failed executing run to line
    org.eclipse.core.runtime.CoreException: Failed executing operation on line 75 in file mainNF.c. Make sure the selected line number is an executable line.

Could some of you help me to solve the questions?

  • Hi,

    First you need to be sure you are building your project with the debug information enabled (option -g) - check the project compiler options.

    Also, the optimizer may be optimizing or rearranging lines of code in your system, thus causing some breakpoints to not be set at specific lines of your source code. Try to completely disable it (check this post).

    One mistake I used to do myself is try to set breakpoints in sections of code between #ifdef / #endif directives that were removed if the symbol was not defined. In this case, make sure the section of code was properly included.

    At last, open a Disassembly view and check if the source code is showing there - it should be interleaved with the assembly opcodes. Try to see if you can set a breakpoint from this view. 

    Hope this helps,

    Rafael