2021-11-03 09:11 PM
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
2021-11-04 06:30 AM
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):
I tried some things, couldn't get it to work either.
2021-11-05 02:15 AM
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...