2018-12-17 04:48 AM - edited 2023-11-20 03:13 AM
Note:
Recommended to use latest X-Cube-TouchGFC 4.13 release. Can be downloaded here: https://www.st.com/content/st_com/en/stm32-graphic-user-interface.html
Documentation link: https://touchgfx.zendesk.com/hc/en-us/sections/360003093319-TouchGFX-Releases
Guides for using TouchGFX with CubeMX & Known limitations.
This forum post will be updated along with newly acquired information regarding the interoperability of CubeMX and TouchGFX.
TouchGFX knowledge base article overview:
Link: https://touchgfx.zendesk.com/hc/en-us/articles/360020001492-Getting-Started-with-CubeMX-and-TouchGFX
This guide gives a general introduction to the workflow of creating an application for graphics with CubeMX and TouchGFX.
There are two ways of getting started with graphics on a ST discovery board
- 1: In TouchGFX Designer select one of the CubeMX enabled Application Templates and start developing graphical applications
- 2: In CubeMX select the desired STBoard from the board selector and add the TouchGFX graphic component.
Please note, that CubeMX does not provide implementation for BSP layer, these files are located in the respectively STM32Cube package for the selected STBoard.
https://touchgfx.zendesk.com/hc/en-us/articles/360019884752-Configuring-STM32F746G-DISCO
This guide describes how to enable TouchGFX graphics on a STM32F746G-DISCO board stating from the STBoard selector in CubeMX.
Opening from TouchGFX Designer, please note that the Application Template contains 2 versions. Version 2.0 is advised.
https://touchgfx.zendesk.com/hc/en-us/articles/360020001992-Configuring-STM32F7508-DISCO
This guide describes how to enable TouchGFX graphics on a STM32F7508-DISCO board stating from the STBoard selector in CubeMX.
https://touchgfx.zendesk.com/hc/en-us/articles/360020208091-Configuring-STM32F769I-DISCO
This guide describes how to enable TouchGFX graphics on a STM32F769I-DISCO board stating from the STBoard selector in CubeMX.
Opening from TouchGFX Designer, please note that the Application Template contains 2 versions. Version 2.0 is advised.
Additional known limitations / updates:
IDEs / Compilers:
IAR is currently working best out-the-box.
More work is needed when using Keil, Atollic, SW4STM32.
Missing BSP Layer
Generating a TouchGFX project from CubeMX, drivers for external components like touch controller and QSPI flash is missing.
TouchGFX Designer error message.
Starting from TouchGFX Designer with an Application templates based on a CubeMX project, the following message appears “Project was modified outside externally�?.
TouchGFX Designer renames the CubeMX and EWARM project files to match the name of the TouchGFX project file.
TouchGFX 4.10
The newest released TouchGFX version is 4.10, available in F4 and F7 Cube packages, and TouchGFX Designer as a stand-alone here; https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/touchgfxdesigner.html
2019-02-22 09:54 AM
Hello @BBenn ,
I've updated my Atollic version to 9.3.0 to eliminate eventually problems and I've tried your tutorial several times.. but always I reach the same error compiling..
Reviewing your tutorial in step 4:
4) Save your SMT32CubeMX and TouchGFX projects for further use.
Copy the files indicated by web guide A) into the project folders.
Which files did you refer? In the end of the guide A) there is something about MDK-ARM, but I thing isn't is because it isn't for IAR..
I'm looking for any missing step.
Regards.
2019-02-22 10:39 AM
"The BSP files are located with the STM32F7Cube firmware. The location can be found by going to Project manager, Use Default Firmware Location.
In the firmware folder, goto to the folder BSP under Drivers, and copy the two folders "Components" and "STM32746G-Discovery". In the folder for the CubeMX project create a folder named BSP under Drivers and place the two copied folder to the BSP folder."
2019-03-05 08:23 PM
Hi. It's not easy. Not support TrueStudio.
2019-04-25 06:44 AM
Hello bbnnett,
I want to create a project with CubeMX, TouchGFX and Atollic on the STM32F746 Discovery.
My project is a LED on output on Connector from board that I would like to command with the screen that I programmed on TouchGFX. I have following your remarks and others on forum well but I have a lot of errors during the compilation.
Could you give me a process step by step more detailed ?
Thank you
Gio
2019-04-29 04:43 AM
Hi,
what can I do if there is no version 2.0 for my board? I am using the F469I-Disco (required because of the smaller formfactor). Can someone help me on that?
Thank you
2019-08-20 01:43 AM
Hey, thanks to you it's started working but is only left half of screen displayed.
When I set breakpoint in "waitForVSync" display displayed left side, right side and again left and there is all photo, but without breakpoint it show only this left side.
Could you please help me ?
Regards
Adrian
2019-08-20 04:38 AM
Ok I found error.
"BoardConfiguration.cpp"
Check "HW_Init.cpp"
2019-08-20 05:31 AM
I don't know if I am able to help - but it LOOKS like your display is defined as 1/2 it's actual width! Something in that area, maybe every other pixel (looks compressed horizontally). I'd look at the display parameters carefully.
2019-08-20 05:37 AM
Great! That's where I was thinking the issue might be...
2019-08-20 05:38 AM
Yes, width in cubeMx is set to 400 but I can't change this because it is inactive: