How do I create more than one STM32CubeIDE project when using TouchGFX?
I created a project using the STM32F429I-DISC1 Discovery board. I have spent a couple of days figuring out how TouchGFX integrates with STM32CubeIDE. I am able to create the widgets I need for a project I am goiing to develop. Everything works fine in my test project.
I started the real project today with TouchGFX and used the Discovery Board as a starting point. The new project was created in a new folder. I placed a couple of buttons on the screen as a test. I renamed the generated IOC file, opened it with STM32CubeIDE, and generated the code. When it finished generating the code a box popped up and I clicked "Open Project". I then get this strange message:
Verbatim:
A project 'STM32F429I-DISCIO' already exist into the workspace:
This: C:\TouchGFXProjects\ButtonsLEDs\STM32CubeIDE
Their: C:\TouchGFXProjects\Project2\MultiScreen\STM32CubeIDE
Would you like to remove it and import the new version?
I answered No and the project did not open. So I started over and answered Yes. The project opened and worked like it was supposed to. I then closed the MultiScreen project and tried to open the ButtonsLeds project.
I got an error message saying the project could not be opened as files are missing. Apparently answering Yes to the import question broke the other project. I searched my disk to find the STM32F429I_DISCO_REV_E01 file and it only appears in the STM32CubeIDE\workspace_1.7.0 directory. It had a time stamp of when I answered Yes to the import question.
I have never had an issue creating multiple projects using STMCubeIDE in the past as the projects are always in different folders. Apparently this problem is unique to using the TouchGFX tool when creating a project.
I have two questions.
1) How do I create and open a new project without breaking the last project I worked on? Apparently placing it in another directory doesn't work as STMCubeIDE seems to only know about the STM32CubeIDE\workspace_1.7.0 directory if TouchGFX created the project. There appears to be no way to rename the STM32F429I-DISCO file in a new project to eliminate the conflict.
2) How would I create a project for a custom board when using TouchGFX? Do I need to use one of the Discovery board templates and then modify the IOC file to match the GPIO pins I am using? If I do this, does it break anything in the code that was created by TouchGFX?
