2022-10-13 12:32 AM
Hello,
I have created a sample project from Stm32CubeIDE, but there are no files in the specified location folder, see attached image.
I do not understand this? Where are the files? How is this linked?
Thank you
Solved! Go to Solution.
2022-10-13 02:45 AM
It is probably a bit irritating, but Eclipse as the basis of STM32CubeIDE creates its own folder structure in the project, which does not necessarily correspond to the one on your physical project folder. At least what is labelled "User" in your screenshot has nothing to do with the Application\User folder.
Depending on the tool creating your project (STM32CubeIDE, TouchGFX, etc), you will find the files main.c, etc in the directories e.g. <prj>\Src or <prj>\Core\Src.
To find out the exact location of e.g. main.c in STM32CubeIDE:
Does it answer your question?
Regards
/Peter
2022-10-13 02:45 AM
It is probably a bit irritating, but Eclipse as the basis of STM32CubeIDE creates its own folder structure in the project, which does not necessarily correspond to the one on your physical project folder. At least what is labelled "User" in your screenshot has nothing to do with the Application\User folder.
Depending on the tool creating your project (STM32CubeIDE, TouchGFX, etc), you will find the files main.c, etc in the directories e.g. <prj>\Src or <prj>\Core\Src.
To find out the exact location of e.g. main.c in STM32CubeIDE:
Does it answer your question?
Regards
/Peter
2022-10-13 03:11 AM
Ok, I see. Thank you
2022-10-13 03:49 AM
maybe one more question, if I insert an additional file at this location (see attachment picture), the file is not displayed in STM32CubeIDE.
How do I link this correctly?
2022-10-13 03:55 AM
Inserting at the physical location is not sufficient because Eclipse does not permanently scan the (physical) folder structure for new files and therefore does not notice this.
Instead, you have to add a new file (source, header, etc) within the STM32CubeIDE, e.g. by drag'n'drop into the project. Details can be found in the reference manuals for the STM32CubeIDE, e.g. UM2553 or UM2609.
Regards
/Peter