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.

The code in program doesn't be complied


Hi TI Engineer

My CCS Version is CCS5.2 , complier version C6000 V7.4.1.

I create a program which include a lot of" switch case ".But after I build and load the program to the chip, I find that I can't toggle the breakPoints in all the last case branch,for example:

switch{

case a:

xxx

case b:

xxx

case c:

xxx ---- the breakpoint cannot be toggled here

default:

xxx

}(all break omitted)

As I know only the non-built code can behave like this, so I hesitate that all of the last case branch have not been complied,.

I rebuild the program several times,and make sure there is no any error and warnnings,but all of this is invalid.Can you give me some advice for this?Thank you very much.

  • Hello,
    Is optimization enabled? If so, it could be that some source lines got optimized out. If that is not the issue, please provide a reproducible test case (actual project + source + executable).

    Thanks
    ki
  • Hello Ki-Soo
    I just find that I don't describe the question correctly.
    For example,when it give a warnning in line 141 that" function invalid", the function it refer to is in line 135. It seems like the code complied just doesn't matching the real code. there is some stag between them.
    This problem only happen in one source file.
    I have solved this problem by recreate a project and reload all the file into it.But I still wonder what leads to such kind of error.There is no optimization in my project. Thank you.
  • It sounds like the file that was open in the editor was a different version than the one that is being used for the build. If you double-click on the file in the Project Explorer, it should open the one that will be used for the build.

    In any case I'm glad to hear that you resolved your problem. Thanks for the update

    ki
  • Hello Ki-Soo
    It seems like not as what you say.The file is just belong to the built project, otherwise I can't toggle any breakpoint in it,isn't it?
    But it is copied from another project to the target project, is it a possible cause of the problem?