2026-02-24 6:54 AM - edited 2026-02-24 10:55 AM
TouchGFX version 4.25.0 CubeMX version 6.17.4* STMCubeIDE version 2.0.0
*edited version
I created a development environment starting with TouchGFX and used Generate Under Root in CubeMX. This did a great job of setting up the directory structure without links so that it is easier to navigate in the STM32CubeIDE application.
Part of this process automagically moves the middleware and driver directories from the STM32CubeIDE directory to the root directory.
When the .project file is created by the TouchGFX code generation it handles the movement of all these files and include directories like a champ, except the Properties=>C/C++ Build=>Settings=>MCU/MPU G++ Linker=>Libraries=>Library search path for the libtouchgfx-float-abi-hard.a library.
It sets the path to "${workspace_loc:/STMCubeIDE/Middlewares/ST/touchgfx/lib/core/cortex_m7/gcc}" instead of "${workspace_loc:/${ProjName}/Middlewares/ST/touchgfx/lib/core/cortex_m7/gcc}"
It's a quick fix to edit it to the correct value. Unfortunately every time you Generate Code in TouchGFX and do a refresh of the project in the STM32CubeIDE application it changes it back.
My question is: Can this be fixed by the developers in a future release?
I've attached a word document with instructions on how to set up the environment. I apologize for the overuse of screenshots. I tried to make it so that the instructions could be followed by myself in six months. The document was also written with the intention of combining what the IDE gives for a new project on the STM32F769I-DISCO board with what TouchGFX gives for a new project. The IDE gives no display, and TouchGFX gives no GPIOs besides the display.
Tony
Solved! Go to Solution.
2026-03-26 1:53 PM
Hi @ferro
Thank you very much for your help. I will be trying the suggestions you have made, but I will not be able to get to them for at least 2 weeks.
I feel like a kid giving excuses, but A) a different project I'm working on has recently become highly visible and I need to focus on that, B) My work computer was replaced and I have no IDEs currently installed on my PC, C) I have major surgery next week and will be out for at least a week. At least with installing the IDEs you'll know I'm at the latest and greatest.
Your solution looks good and I will try it as soon as I can. I'll start from scratch using my document and install your steps into it. Once I verify your solution I will "Accept as Solution"
2026-03-26 2:12 PM
No worries. I think this might be the best solution, as these custom library paths go under the radar of GfxDesigner.
I also always convert the project to “Under Root” in CubeMX for exactly the reasons you described. So I had to deal with the interaction between CubeIDE, CubeMX, and GfxDesigner. Not for the faint-hearted.