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/TMS320F28069F: "Search Text>Project" won't search header files

Part Number: TMS320F28069F

Tool/software: Code Composer Studio

I'm having a problem with CCS V7 where the "Search Text>Project" on the editor context menu will not search headers.  If i highlight the function name in a function declaration within a .c file, I can press F3 to jump to the function prototype in the header.  But when I then right click the function name in that prototype and select "Search Text>Project" to find all the places this function is called, nothing happens.  If I go back to the .c file and do the same thing on the function name in the declaration, CCS only shows me references to the function that are in .c files, no header files.  This is particularly frustrating for inline functions that are declared in headers and only referenced in other header inline function declarations. 

I'm a relatively new user to CCS v7 so I've probably just got setting wrong somewhere, but I have not been able to figure out what it is.  Any insight into what is going on would be greatly appreciated.  Thanks.

Tom

  • Oops. I forgot to provide the details on my setup.
    OS = Windows 10, build 17134
    AntiVirus = Norton Internet Security
    CCS = V7.4.0.00015
  • Tom,

    Is the header file physically in the project or is it a file that is referenced and resides somewhere else?

    In the example below I have a call to Timer_init() in a C file.  If I do an F3 it will open Timer.h where the declaration is.  I have added another declaration to MSP_EXP432P401R.h which is physically in my project folder structure.

    When I perform the same text search as you it finds the call in the C file and only the declaration in the second H file.

    This is because this search is limiting the scope to the project.  And for a plain text search it defines project as the files that are physically in the project.  This is because it is a plain text search and not a language based search.

    If instead I do a this search:

    If actually finds the declaration in the correct header file.  This search is a language based search.

    If you click on the search button on the tool bar you can tune the search even more.  Click on the button and then select the C/C++ search tab.  Here I can control what matches I want.  I can control if I want references, declarations...

    When I run this search I get:

    Regards,

    John

  • Thank you, John. That answers everything. There are so many items on the CCS menus, that I had never even noticed the Declarations and References items! Also I had not discovered the search toolbar item (I thought the icon was a little rocketship not a flashlight!) Thank you for the tips.
  • Yeah I am not a fan of that icon. It is something that comes from Eclipse. Mistaking it for a rocket is quite common.

    John