2024-05-17 11:02 AM
Hi,
I am currently running two TouchGFX designs for a single CubeIDE project. effectlvly one design is Landscape and the other portrate. This is fine however, i am having to maintain them individually in different repos as i am unsure how to have both TouchGFX designs within the same CubeIDE porject.
Ideally what i would like is to be able to build both designs out as seperate binaries.
These screens use the same assets, nameing conventions etc. to link into the project Im just unsure about how to actually create this single build that i can manage in a single repo.
Hope someone will be able to asisst.
using TouchGFX 4.20.0 & cube IDE 1.9.0, i know these are older, but i don't really want to introduce many other aspects until i can combine these TouchGFX designs.
2024-05-17 11:45 AM
I mean in Eclipse simple place both TouchGFX folders in project and exclude one from build for target configs
2024-05-17 11:58 AM
Hi,
I had considered this so i renamed the TouchGFX folder and then struggled to tie all the include files back together. It seemed like there were other ties / path names other than those in the cubeide "Paths & Symbols"
2024-05-23 04:35 AM
Hello @justin11 ,
There is a similar thread about managing files in an STM32CubeIDE project that I recommend checking out here. Additionally, consider examining a TouchGFX Board Setup with a dual-core configuration, such as the STM32H747I-Disco, as they have some shared files but distinct subprojects, allowing you to create separate binaries for each.
However, keep in mind that your common TouchGFX files should be gui and assets, the rest should be specific to each project.
I hope this helps you, don't hesitate to ask more questions
2024-06-18 02:49 AM
Hello @justin11 ,
Did you manage to create the project you wanted?
2024-06-18 05:28 AM
Hi,
I sort of have. I have created a dedicated folder for each of the project and then created two build configurations within cubide.
This allows me to build a specified configuration that pulls in a different touchGFX design.
However, the issue i still have, is that i need to build the touchGFX design seperatly if i switch from one configuration to another before the cubeide builds correctly.
2024-06-19 02:51 AM
Glad to hear that you have made progress.
Maybe this tip will help you even more: you can generate TouchGFX code through command-line. In your TouchGFX installation directory, tgfx.exe can be called to generate code using the command below:
C:\TouchGFX\4.24.0\designer\tgfx.exe generate -p [path to your project]\MyApplication.touchgfx
You can see the documentation about it here .
2024-06-19 03:18 AM
thanks for this, is this available in the 4.20.0 version of touch gfx. im a bit reluctant to upgrade at the moment as it seems so closly tied into cubeide
2024-06-21 03:03 AM
Yes, that's why I mentioned it