2025-10-01 2:23 AM
Hello everyone,
I’m currently facing an issue with my project folder structure when using TouchGFX Designer (v4.21.4) together with STM32CubeIDE.
Since the project was originally created with TouchGFX Designer, the generated structure (See below) is a bit problematic:
The main project files exist inside the STM32CubeIDE folder (the actual IDE project).
However, the Core folder and the TouchGFX folder live outside the root STM32CubeIDE project folder.
This makes the structure inconsistent compared to projects created directly from CubeMX with TouchGFX , where everything (including Core and TouchGFX) is properly contained within the STM32CubeIDE root folder.
What I want to achieve:
Reorganize the project so that Core and TouchGFX are placed inside the STM32CubeIDE folder, making the structure(see below) look the same as if it had been created through CubeMX with TouchGFX enabled.
What is the correct way to restructure the project without breaking the build process?
Is there a recommended approach to migrate/align the folder structure in this situation?
Any guidance or advice would be greatly appreciated.
Thanks in advance!
2025-10-01 2:30 AM
@kesara7 wrote:
What is the correct way to restructure the project without breaking the build process?
The tools generate the structures as they like - I think there's no way to change it.
2025-10-02 5:36 AM - edited 2025-10-02 5:38 AM
Hi @Andrew Neil
Thanks for the reply.
I am thinking about editing the .CPROJECT file so the file paths matches with the structure I need. As for now I have no succes.
2025-10-02 6:35 AM
If you do that, you will never be able to re-generate code using the tools (CubeMX, etc).
Again, leave the generated folders alone; you can put your own user code anywhere you like.
2025-10-04 1:58 AM
Most ok method is dont try this, instead create new empty project in Cube and copy required parts from touchgfx generated dummy ...