cancel
Showing results for 
Search instead for 
Did you mean: 

How to search Project include files.

Peter Simpson
Associate II

I am new tp STM32CubeIde and have installed V1.7.0

I have loaded a project from the STM32Cube_FW_WL_V1.1.0 example applications.

The project explorer shows the project tree with

Binaries

Includes

Application

Debug etc nodes

If I use Search->File to open File Search window, specify the search string,

use *.c, *.h in file patterns

select workspace as scope

the search only returns the search string found in the Application node of the project tree and does not search the Include Nodes of the project

Is there a way to add the Include Nodes to the search?

Thanks

2 REPLIES 2
TDK
Guru

There does not appear to be a way. Apparently an Eclipse limitation. This is a tough one to search but here's the best result I could find (TI CCS is also Eclipse based):

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/49326/help-with-ctl-h-searches

I tried some things, couldn't get it to work either.

If you feel a post has answered your question, please click "Accept as Solution".
mattias norlander
ST Employee

Hi Peter,

You can try to use CTRL+SHIFT+T. This will open the "Open Element..." dialog here youcan filter and find "elements". This tool is relying on the CDT indexed database when performing queries. Assuming your application code includes toolchain headers and the #ifdef's are set properly you will be able to find symbols from the "Includes" directory.

But in general Eclipse/CDT will only keep track of files inside your project or inside the workspace. Using for example "linked resources" to link a c/h-file into a project is not really a good option. It will only be parsed by the indexer once. So if you make changes in a linked file, then CDT will not notice and consequently many editor tools will be out-of-sync with your changes. Build result will however be OK anyway...