Skip to main content
sanju
Associate III
February 23, 2023
Solved

STM32CUBEIDE add SDK files

Hi all,

i am facing a problem with stm32cubeide. i copied and paste a SDK folder to project folder and it is showing there in project directory in stm32cube ide. (refer 1.png)

then i added header files paths through project > properties > c/c++ general > paths and symbols > includes (refer 1.png)

i added source files through project > properties > c/c++ general > paths and symbols > source location( (refer 3.p)g)

when i build the it gets successful and firmware work as per expectation.

now the problem is when press F3 to jump on function definition which is defined in SDK source file , rather than going to function definition *.c cursor jumps to function declaration *.h file.

for example i am calling reg_wizchip_cs_cbfunc(cs_sel, cs_desel); function from tcp_handling.c file, when i press F3 here cursor jumps function declration to wizchip_config.h files , ideally it should jump to function definition in wizchip_config.c file. (refer 4.png)

if i copy SDK folder to src folder instead of project folder and do the necessary configuration (add include paths and source location then it work ok i..e it jumps to function defintion pressing on F3. (refer 5.png)

what step i am missing here.

Post edited to adhere community guidelines.

This topic has been closed for replies.
Pavel A.
Pavel A.Best answer
February 27, 2023

Try to re-index: in the project explorer, right click on the project -> Index->Rebuild.

Adjust the indexer settings in Window->Preferences->....->Indexer

4 replies

Pavel A.
Pavel A.Best answer
February 27, 2023

Try to re-index: in the project explorer, right click on the project -> Index->Rebuild.

Adjust the indexer settings in Window->Preferences->....->Indexer

sanju
sanjuAuthor
Associate III
March 4, 2023

Thank you very much for the support. I rebuild the project as you mentioned and problem is solved now.

Wijeden RHIMI
ST Employee
February 28, 2023

Hello @sanju,

the problem was not resolved yet?

we cannot reproduce your issue, could you please provide a simple project containing the problem ?

Waiting your response!

Best regards,

Wijeden,

sanju
sanjuAuthor
Associate III
March 4, 2023

yes , the problem has been solved by following instruction as mentioned by @Pavel A.​ .

Thank you.