2023-02-22 08:16 PM
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.
Solved! Go to Solution.
2023-02-27 02:58 PM
Try to re-index: in the project explorer, right click on the project -> Index->Rebuild.
Adjust the indexer settings in Window->Preferences->....->Indexer
2023-02-27 02:58 PM
Try to re-index: in the project explorer, right click on the project -> Index->Rebuild.
Adjust the indexer settings in Window->Preferences->....->Indexer
2023-02-28 12:49 AM
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,
2023-03-03 09:34 PM
Thank you very much for the support. I rebuild the project as you mentioned and problem is solved now.
2023-03-03 09:35 PM
yes , the problem has been solved by following instruction as mentioned by @Pavel A. .
Thank you.