cancel
Showing results for 
Search instead for 
Did you mean: 

Changing TouchGFX folder structure.

kesara7
Visitor

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:

kesara7_0-1759310066362.png

 

  • 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.

kesara7_1-1759310242907.png

 

 

  • 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!

1 REPLY 1
Andrew Neil
Super User

@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.

See: https://community.st.com/t5/stm32cubeide-mcus/unable-to-generate-code-from-ioc-file/m-p/835215/highlight/true#M38403

And: https://community.st.com/t5/stm32cubeide-mcus/unable-to-generate-code-from-ioc-file/m-p/843079/highlight/true#M38759 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.