2025-03-07 3:40 AM
I started using STM32CubeMX, Atollic TrueStudio and the ST-Link Utility about 7 years ago and just recently, downloaded the latest STM32CubeIDE which does it all. Since then I noticed there are no files in the Drivers and Middlewares subdirectories although the project folder in the IDE shows the files. Not that I would want to modify those files, but just curious as to why I don't see them outside of the IDE.
Solved! Go to Solution.
2025-03-07 7:14 AM - edited 2025-03-07 7:18 AM
In CubeIDE example projects, Drivers and Middlewares are "virtual" folders that contain links into the "repository".
Also, you will see the same empty directories if you generate a new project and select creating links to the library instead of copying library files into your project. This is just how Eclipse works since its, er, big bang version.
WORKSPACE_LOC is yet another macro, it always points to the active Eclipse workspace directory. Your Drivers and Middlewares dirs may be placed there (shared by several projects in the same workspace?) though CubeIDE or CubeMX won't do this by themselves. Someone else did it.
2025-03-07 3:59 AM
OK if you go to Properties->Resouce->Location (Edit)->Variable it will show the LOCation variables. WORKSPACE_LOC has the directories it's using.
2025-03-07 4:55 AM
@ToasterOvenDan wrote:
OK if you go to Properties->Resouce->Location (Edit)->Variable it will show the LOCation variables. WORKSPACE_LOC has the directories it's using.
So if you solved your issue please accept it as solution.
Thank you.
2025-03-07 7:14 AM - edited 2025-03-07 7:18 AM
In CubeIDE example projects, Drivers and Middlewares are "virtual" folders that contain links into the "repository".
Also, you will see the same empty directories if you generate a new project and select creating links to the library instead of copying library files into your project. This is just how Eclipse works since its, er, big bang version.
WORKSPACE_LOC is yet another macro, it always points to the active Eclipse workspace directory. Your Drivers and Middlewares dirs may be placed there (shared by several projects in the same workspace?) though CubeIDE or CubeMX won't do this by themselves. Someone else did it.