cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with headers.h files in STM32CubeIDE

GS2
Senior

Hello,

I have the follow problems with headers.h files :

1. Hard to open required header file - have to go thru source's files includes chain
to find required header and click "Open Declaration" to open.
2. If variable definitions are in the header file -
"Open Declaration" for this variable does not show it.
3. Search for text - does not bring any results from header files -
have to use Windows Explorer to search for it.

Please tell me - what I am doing wrong?
What setting can I change in STM32CubeIDE?

2 REPLIES 2
liaifat85
Senior II

STM32CubeIDE uses indexing to facilitate navigation. Sometimes the index might not be updated properly. You can force a rebuild of the index by going to ProjectC/C++ IndexRebuild.

GS2
Senior

Thank you liaifat85,

Yes, this may help with variable definitions in the header file - 2.

I have reload the project and variable definitions are showing now,

and → Rebuild is grey - not active.

But what about 1. and 3. ?