cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE shows duplicate folder when linking custom library to project

DominykasS
Associate II

Hello,

I have created a stm32cubeide project and wanted to add my own library folder to that project so I just drag and dropped it into workspace. This library folder will have multiple subfolders and .c/.h files. I linked folder using Includes, .c files using Source location. After doing this I get duplicates of my folder showing up in Project Explorer (STPM34 and BSP). It compiles without errors so I guess it just shows those folders as a part of project because IDE thinks that this folder is outside of project, but how to turn off this feature?

DominykasS_0-1731314535713.png

How to correctly include folder with .c and .h files into stm32cubeide?

2 REPLIES 2
Souhaib MAZHOUD
ST Employee

Hello @DominykasS 
The steps in the thread below will help you add your custom libraries to STM32CubeIDE:

How to add external libraries in STM32CubeIDE - STMicroelectronics Community

 

Thx,

Souhaib

Pavel A.
Evangelist III

Folder Cab_ctrl_V02 is not included in build. It just shows up in the tree view. But its subfolders are linked into the project. You can hide it by the project explorer  display filter.