2025-07-22 1:15 PM
When the TouchGFX Graphics Application is selected, the supplementary TouchGFX code is generated; however, the TouchGFX library itself is not included in the project. I tried all available code generators, but none of them added the library.
Solved! Go to Solution.
2025-08-04 4:02 AM - edited 2025-08-04 4:03 AM
Hello @peterdonchev ,
Could you please follow these steps and let me if the issue is solved or not:
1. Create STM32CubeMX project and select STM32H523CET6
2. Enable X-CUBE-TOUCHGFX by installing TouchGFX Generator 4.25.0
3. Enable Graphics Application in X-CUBE-TOUCHGFX
4. Generate code in STM32CubeMX
5. Go to TouchGFX folder and right-click ApplicationTemplate.touchgfx.part select "open with" TouchGFX Designer 4.25.0
6. Select "Blank UI" and press Import
7. Generate code in Designer (this will generate Middlewares\ST\touchgfx)
I hope this help you.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-08-01 4:02 AM
Hello @peterdonchev ;
Could you give more details about the name of the missing files library.
When, I generated the code from your ioc file, I can see the TouchGFX library in the project.
Please try to use the latest version of X_CUBE_TOUCHGFX 4.25.0.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-08-01 4:23 AM
Hello,
This folder does not contain the actual library; it only includes generated supplementary files. The TouchGFX library is expected to be located in Middlewares\ST\touchgfx, but that folder is missing.
Regards,
Peter
2025-08-01 6:00 AM
Hello @peterdonchev ;
Thank you for this clarification and bringing this issue to our attention.
I reported the issue internally.
Internal ticket number: 215199 (This is an internal tracking number and is not accessible or usable by customers)
Thanks and best regards,
Kaouthar.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-08-04 4:02 AM - edited 2025-08-04 4:03 AM
Hello @peterdonchev ,
Could you please follow these steps and let me if the issue is solved or not:
1. Create STM32CubeMX project and select STM32H523CET6
2. Enable X-CUBE-TOUCHGFX by installing TouchGFX Generator 4.25.0
3. Enable Graphics Application in X-CUBE-TOUCHGFX
4. Generate code in STM32CubeMX
5. Go to TouchGFX folder and right-click ApplicationTemplate.touchgfx.part select "open with" TouchGFX Designer 4.25.0
6. Select "Blank UI" and press Import
7. Generate code in Designer (this will generate Middlewares\ST\touchgfx)
I hope this help you.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-08-04 5:43 AM
Hello,
It is now in place. Thank you!
2025-08-04 5:55 AM
Hello @peterdonchev ,
Glad to know that the issue is solved.
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-10-28 6:55 AM
Hi,
I faced the same issue and wasted some time before I found this bug report and solution. Hopefully this will be fixed in the next release or at least mentioned in the TouchGFX Generator User Guide.
Thanks
Peter
2025-10-28 7:22 AM - edited 2025-10-28 7:23 AM
Hello @bitshifter ;
First of all glad to know that this discussion help you to solve your issue.
The TouchGFX framework is copied to the Middlewares folder only when you generate code using TouchGFX. If you use TouchGFX Designer and generate code (F4), you can see in the console that this process occurs as the first step. In this video TouchGFX Webinar - 3 - Project customization, steps 5 through 7 in the procedure are mentioned starting at 7:00.
Thank you.
Kaouthar
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-10-28 8:28 AM
Hi Kaouthar
Thanks for getting back to me. I followed this guide:
https://support.touchgfx.com/docs/development/touchgfx-hal-development/generator-how-to/generating-code
which is using CubeMX for project configuration and code generation and ended up with an incomplete project missing the Middelware/ST/touchgfx include folder. While the method you suggest to fix this works, it's imho awkward and not obvious: First generate the code in CubeMX, open the .touchgfx.part file in TouchGFX Designer, insert a blank UI, regenerate the code and finally open it in CubeIDE. I think CubeMX should be able to add the missing Middleware/ST/touchgfx in the first place, maybe even adding a blank UI the the project if this is required for build. If you think that this isn't going to happen, then please update the documentation in the link above, saving some people wasted time and frustration.
Thanks,
Peter