cancel
Showing results for 
Search instead for 
Did you mean: 

New to STM32CubeIDE. How can I add a new folder containing new .cpp files I have created to the project? I don't see an obvious way to do that in Project > Properties or other obvious places. Thanks, Noji Ratzlaff

NRatz.2
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Right click in the project tree to create the folder.

Drag/drop files into that folder or right click to create new ones.

Add a new source folder from project properties -> C/C++ General -> Paths and Symbols -> Source Location.

After that, it will build the source files from within that folder.

0693W00000SwIrfQAF.png

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

1 REPLY 1
TDK
Guru

Right click in the project tree to create the folder.

Drag/drop files into that folder or right click to create new ones.

Add a new source folder from project properties -> C/C++ General -> Paths and Symbols -> Source Location.

After that, it will build the source files from within that folder.

0693W00000SwIrfQAF.png

If you feel a post has answered your question, please click "Accept as Solution".