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.

CCS/CC2652R: Debugging with several referneced projects

Part Number: CC2652R

Tool/software: Code Composer Studio

Hello,

I loaded the cli openthread example for the CC2652 and wanted to do some debugging in the openthread stack. Now I have the problem that I am not able to set breakpoints because CCS tells that there is no associated code available. Is there some setting I have to set to enable this or is this simply not possible at all?

Thanks, N3xus

  • Hello,

    N3xus132 said:
    Now I have the problem that I am not able to set breakpoints because CCS tells that there is no associated code available.

    I assume you had a source file open in the editor and tried to set a breakpoint in a source line. If that is the case, then the issue is that the debugger was unable to associate that source file with the debug symbols you loaded to the debugger for the code on the target.

    This issue has many potential root causes. And without more details, it is difficult to provide any suggestions. Some potential causes:

    -debug symbols are not loaded

    -the source file in question is in a different location than what the debugger is expecting

    -symbols were not built with debug symbol generation

    -code optimization was enabled, which optimized that part of the code out

    In my experience, the second option is the most common. A useful tool in this case is the Modules view. This allows you to inspect the debug symbols. Use this view to find if the source file in question is listed. If so, see where the debug symbols is looking for the file. Try to open it from the debug view.

    http://dev.ti.com/tirex/explore/node?node=APVIzRhtpuf-7AMAb9iu3w__FUz-xrs__LATEST

    Thanks

    ki

  • Hello,
    I haven’t heard back from you, hence this issue is being closed. If you wish to continue the discussion, please post a reply with an update below (or create a new thread).

    Thanks,
    ki
  • Hello,

    I now checked what you said and you are right, the debug symbols for these sub-projects are not loaded. To clarify: There are 5 CCS Projects that are compiled and output to libraries. These libraries are linked to the main CCS project. How can I now add the debug symbols to my project so that I can also debug in these libraries? Or is there maybe no way to do so?

    Thanks, Armin
  • Hi Armin,
    Are the libraries that you are linking in have full debug symbols generated? If not, then you will need to enable the option to have symbol generation enabled.

    Thanks
    ki