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/CC2652P: How to jump to the implementation of a function which is implemented in SimpleLink SDK when not in debug mode?

Part Number: CC2652P

Tool/software: Code Composer Studio

Hi there,

I'm using CCS10.1, SimpleLink SDK4.20.

When not in debug mode, if a function is implemented in SDK, it seems that there is no way to jump to the implementation of the function from where it invoked.

For example, below is in ti_drivers_config.c, 

Double click Pin_init(), press F3 to go to declaration, it just jumps to PIN.h which is in SimpleLInk SDK directory, like this, 

Then, continue pressing F3, it won't jump to the source c file. 

In fact, the source file is PINCC26XX.c which is in SDK directory, like this, 

However, when in debug, I can use F5(step into) on PIN_Init to jump to the implementation in file PINCC26XX.c.

And, if a function is implemented in user's directory rather than SDK's directory, I can jump to the source file using F3.

So, my problem is , if a function is implemented in SDK, how to jump to the source file when it is not in debug mode?

  • Hello, 

    yingtao jia said:
    So, my problem is , if a function is implemented in SDK, how to jump to the source file when it is not in debug mode?

    You need to compile a needed source file in the debug mode.

  • Hello,

    Note that the editor "F3" feature and stepping during debug are very different things. The editor F3 "jump to" feature uses data collected by the indexer. The indexer works best on files that are directly part of the project, especially if the file is physically inside the project folder. If the file is referenced indirectly, then the results are more mixed. For example if you are debugging code that was linked in via a library. If you feel that a file should be getting picked up by the indexer, but it is not - you can try rebuilding the index cache.

    Thanks

    ki

  • Hello, I tried reubild index cache, but still can not jump to.

    As you say, the source file is referenced indirectly which is in SDK's directory rather than workspace's directory.

    So, maybe just can not.

  • You can try adding the path to the file as mentioned in the below article:

    https://www.eclipse.org/community/eclipse_newsletter/2013/october/article4.php

    This may or may not help depending on the structure of the file and how the function is implemented. How effective this is can vary and I have had mixed results myself. Note that you will need to expose the "advanced settings" by clocking on the option in the lower left corner of the project properties dialog.