2024-11-11 12:47 AM - edited 2024-11-11 12:49 AM
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?
How to correctly include folder with .c and .h files into stm32cubeide?
2024-11-12 02:18 AM
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
2024-11-12 01:23 PM - edited 2024-11-12 01:39 PM
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.