Skip to main content
delli
Associate II
July 2, 2022
Question

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

  • July 2, 2022
  • 1 reply
  • 1445 views

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.

This topic has been closed for replies.

1 reply

Pavel A.
Super User
July 3, 2022

Read on "Link a source folder".

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