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.

Adding a certain folder for either "File Search" or "C/C++ Search"

Hello,

  I am looking for adding a certain folder while using these two searching functions "File Search" or "C/C++ search". My CCS version is 12.2.0. I am working on a project using the SDK. For instance, this function "LED_open" is defined in the SDK LED driver under this folder "C:\ti\mcu_plus_sdk_am243x_08_05_00_24\source\board\led". While using "C/C++" search, the header file "led.h" can be found but not the source file "led.c"  What I want to do is to add or enable this folder for either "File Search" or "C/C++ search" so that it can be found. I went through all options but couldn't find the place to add this folder. Could you please help this issue?

Thanks,

Ming

  • Hi Ming,

    How is led.c and led.h referenced in your project? Have they been explicitly added or linked to the project? Is led.h referenced in a source file with the path to it added to the project as an include search path?

    Thanks

    ki 

  • The header file is referenced in one of source files in my project. However, the "led.c" file is not referenced directly the pre-built library is linked in the project. The include search path does have the SDK path. I am looking for a way to find this function in the LED drive source file "led.c" from the SDK driver source folder but the project does not reference the "led.c" file directly. 

  • I am looking for a way to find this function in the LED drive source file "led.c" from the SDK driver source folder but the project does not reference the "led.c" file directly. 

    I suppose you could try creating a separate dummy project with a link to the C:\ti\mcu_plus_sdk_am243x_08_05_00_24\source\board folder in there. That would cause the C/C++ search to look inside that folder when the search scope is at the workspace level.

    Or you can use the "Remote Search" feature to specify local paths to search in. This is what this search is designed for.