2025-03-26 8:24 PM - edited 2025-03-26 11:12 PM
Hello,
I have a weird problem... I currently have 10 src directories in CubeIDE, and everything compiles properly.
The problem arises when I add an 11th directory (ie graphics), and then add "graphics/LVGL" to the build include path:
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
2025-03-26 11:07 PM - edited 2025-03-26 11:09 PM
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...
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:
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!!!