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.
Hello everyone
I cannot toggle the breakpoints in the CCS Debug. I am running one example project in PDK 6678 1.1.2.6--SRIO_TputBenchmarkingTestProject. I mean when I double click the left button of my mouse on the line indicator, the little blue breakpoints appear and disappear then. However, in the other my projects, it works OK. So I think there must be some configuration I may change.
Can anyone tell me how to set it?
Thanks in advance.
Xining
Hello Xining,
Xining Yu said:I mean when I double click the left button of my mouse on the line indicator, the little blue breakpoints appear and disappear then.
Does the breakpoint icon completely disappear or does it get greyed out (disabled)? If it is the former, it could be getting moved because there is no associated code with that source line (often happens with optimized code). If it gets greyed out and disabled, it is likely that the debugger is unable to associate that source file with the code.
More details would help like full CCS version, if you are debugging optimized code and screenshots of the issue
Thanks
ki
Thanks for replying Ki.
What I encounter is the former one you said. It went off completely. I had attached the screen shoot of the code. I can toggle the breakpoint in the CCS edit model. However, the DSP cannot stop at that point.
And how can I tell whether the code is optimistic or not? I had tried to toggle the breakpoint at other place of this example project. The breakpoints went off neither.
Thank You.
Xining
Xining Yu said:What I encounter is the former one you said. It went off completely. I had attached the screen shoot of the code. I can toggle the breakpoint in the CCS edit model. However, the DSP cannot stop at that point.
If the breakpoint is enabled but the DSP never halts there, then it is likely that the location is not being reached when the program is executing.
Xining Yu said:And how can I tell whether the code is optimistic or not?
Check your build setting to see if optimization is enabled. It will be under the "Optimization" section.
Also check out this section for more information on breakpoints.
Thanks
ki
Thanks Ki
After I make the optimization level to off, the breakpoint cannot be set up neither.
I found another interesting thing.
When I toggle the breakpoint in the middle of many functions(I did not test all), the breakpoint will be set up in the first line of the function. No matter it is the main function or subfunction.
I attached the sceenshoot. What I want to do is setting up a breakpoint in the line 778. However, the system set the breakpoint at line 771. It happens in many functions too.
Thank you and merry Christmas.
Xining