Skip to main content
hfs99
Associate II
Oct 23, 2026 11:42 AM UTC
Question

project in subdirectory of workspace

This may be an eclipse limitation. What I want

  • single workspace e.g. $HOME/work/cube
  • a subdirectory for each board. e.g. cube/f303nuc, cube/f401nuc, cube/L100disc
  • multiple projects in each subdir, e.g. f303nuc/blinka, uarta, daca

When I try to set up a project, [eclipse] complains about overlapping projects - apparently interpreting the f303nuc directory as a project. Is there a way to organize the way I like, or am I limited to a flat “hierarchy”?

Background: Coming off a (gulp) 10 year hiatus. I’ve only used makefile projects in the past. I think I’m pleased that ST now has a linux version of the IDE.

5 replies

hfs99
hfs99Author
Associate II
Oct 23, 2026 4:36 PM UTC

Version 2.2.0

Build 29186_20260626_0934

May be related to import hierarchical project.

screenshot

hfs99
hfs99Author
Associate II
Oct 24, 2026 2:51 AM UTC

oops

Pavel A.
Oct 23, 2026 11:20 PM UTC

AFAIK what you want definitely is possible. Just keep in mind that the *project location* for Eclipse is the directory where the .project and .cproject files are located. Some hierarchical project structures have a .project file in parent directory, and that .project file is of a different project type than a CDT project. If you have issues with the latter sort of hierarchy, please tell how/where you got it from. (is it a multicore STM32H7, or project created by some GUI/Motor control/Wireless IDE)? 

Also consider that the “metadata” of Eclipse workspace is bristle and easy to spoil. Especially if you use several CubeIDE or other Eclipses with the same workspace. Fortunately it’s easy to re-create a workspace from scratch and re-import the projects.

hfs99
hfs99Author
Associate II
Oct 24, 2026 2:10 AM UTC

Many thanks for the info. I didn’t attempt to import anything. I tried to create one project from scratch, first un-checking the default location box and then adding the f303nuc directory in the same dialog. The IDE then showed the error with the next button disabled. At this point the f303nuc directory is completely empty and I have no projects. (I’m not in that big a hurry and would prefer to figure this out.)

I chose project type STM32CubeIDE Empty Project. (I guess you can see that from the linked screenshot.)