cancel
Showing results for 
Search instead for 
Did you mean: 

In STM32CubeIDE how to add a source directory out side of the .project directory?

delli
Associate II

Example is the LwIP_HTTP_Server_Netconn_RTOS project

step 1 Create one from the examples.

Step 2 Note the directory structure

./LwIP_HTTP_Server_Netconn_RTOS is the top most directory

There are SRC files located here:

./LwIP_HTTP_Server_Netconn/src

The .project file is located here:

./LwIP_HTTP_Server_Netconn/SW4STM32/STM32H743ZI_Nucleo/.project (and .cproject)

I wish to add a new source level directory up at the top, example:

./LwIP_HTTP_Server_Netconn/src_two

The tool only allows me to make or add things at or below the .project file

why?

Steps to reproduce:

Choose: FILE -> New -> Source Folder

Click: "browse" - it is not possible to move UP to the top level project where SRC is located

I cannot type: ../src - as a relative path - that does not work either

The directory *MUST* be at or below the .project folder.

1 REPLY 1
Pavel A.
Evangelist III

Read on "Link a source folder".

Linked folders and files are feature of Eclipse, not specific to CubeIDE.