cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a limitation to the number of directories in CubeIDE? - CubeIDE is unusable

matt-crc
Associate III

Hello,

I have a weird problem... I currently have 10 src directories in CubeIDE, and everything compiles properly. 

mattcrc_0-1743045414867.png

The problem arises when I add an 11th directory (ie graphics), and then add "graphics/LVGL" to the build include path:

mattcrc_1-1743045502962.png

mattcrc_2-1743045572065.png

CubeIDE will never compile any files in the "Graphics" directory.  If I move the LVGL directory to any of the previous directories (ie Core or Drivers), and redefine the include path, then CubeIDE will compile the code.

 

Is there a restriction as to how many source code directories can be defined in CubeIDE?  The other strange thing is the "Debug" directory is in the 11th position in the list, and I was unable to move the graphics directory above Debug.

 

Am I missing some setting or is this a restriction on CubeIDE?

thanks

 

 

1 REPLY 1
matt-crc
Associate III

From these 10 available Src directory slots, 8 were auto generated by CubeMX and/or CubeIDE.

(1)AzureRTOS, (2)core, (3)Drivers, (4)FileX, (5)LevelX, (6)Middlewares, (7)NetDuo, and (8)USBX.  Now I don't want to put additional code in those directories because STM has a tendency of deleting my files in those directories.  For example if you unconfigure an addon in CubeMX, it deletes the entire directory (including all the user files)!!!!!!

From the image above, I created MiddlewareChanges - which contains the modifed Middlewares patches/fixes/updates.  

So that leaves one directory - Which I defined as "User code"....   

I want to put the LVGL distribution is a separate directory, so I tried to move the "MiddlewareChanges" into the Core Directory.   My first attempt was to try to drag it with the CubeIDE GUI, and it resulted in this...

mattcrc_0-1743055274725.png

it doesn't put the directory into the "Core" directory, it creates Core/MiddlewareChanges

if I try to manually create a "MiddlewareChanges" directory using "file new", i get this:

mattcrc_1-1743055416232.png

There is a slash "/" through the folder icon, and the folder is not usable. If I'm not doing something wrong, this is a serious BUG.  CubeIDE has become unusable!!!