STM32CubeIDE and TouchGFX : re-generating the code messes the project structure.
Used ecosystem :
STM32CubeIDE version: 1.4.2 Build: 7643_20200813_1322 (UTC)
TouchGFX vesion 4.5.0 , with STM32F746G-DISCO template version 3.0.2
STM32Cube FW_F7_V1.16.0 Drivers
To repeat the issue :
1) Create a new project using TouchGFX Editor, using STM32F746G-DISCO as template.
2) Add some widgets to the default initial screen (eg. some red text)
3) Save and generate code from TouchGFX Editor.
4) Open the ".project" file from the system's file exporer, letting STM32CubeIDE import it to the current workspace.
5) Compile from STM32CubeIDE : success ! And it runs !
6) Enable a new IP from the CubeMX .oic file (e.g, the USB_OTG_HS as Host Only )
7) Save the .ioc file and let STM32CubeMX re-generate the code.
8) Big HOT MESS in the project directory, the Debug output directory gets added as compilable, two main.c files appear in two separate Core folders, compilation won't succed anymore.
:weary_face: :fearful_face: :loudly_crying_face:
