2025-06-20 3:37 AM
Hi everyone!
I'm trying for the first time to create a project using TouchGFX without using the Designer. My short term is objective is as simple as to see in the screen numbers generated by a function created in main.c or model.cpp.
1) Is there a template of files and folders to implement touchgfx from scratch?
2) What are the configurations in the .ioc in order to use the screen and touchgfx?
I've already installed and activated TouchGFX in the Mx/middleware but I had several build errors due to non-existing or incomplete files.
I'm using CubeIDE and the stm32h750B_dk board.
Thank you in advance for all your support.
Kind Regards,
TJ
Attachements: .ioc configurations, file tree and compilation errors
Solved! Go to Solution.
2025-06-23 8:28 AM
You can use TouchGFX and also use TouchGFX Designer with FreeRTOS, with another RTOS or even without RTOS : https://support.touchgfx.com/docs/development/touchgfx-hal-development/scenarios/scenarios-configure-rtos
From your previous message it seemed you did not want to use the Designer because you thought it was only available with FreeRTOS right?
Yes, since recently, TouchGFX supports CMake but it is still simpler to use GCC.
I recommend you to use TouchGFX and TouchGFX Designer, it would be way easier.
Regards,
2025-06-23 6:10 AM
Hello @tjota ,
You say it is the first time you try to use TouchGFX without the Designer, but do you mean that you want to create a custom board or that you want to create the whole GUI and code without generating code from the Designer,
For how to create a custom board, look at the links below :
For how to create a TouchGFX GUI code without using the Designer, (first why would you do that and then) you can look at code that was generated by TouchGFX Designer and just create your files and functions by hand.
Note that the MX/Middleware as well as many files such as TouchGFXHAL.cpp/hpp are created by STM32CubeMX when correctly setting the STM32CubeMX project.
regards,
2025-06-23 7:25 AM
Hi!
Thank you so much for your answer.
Yes, I would like to use TouchGFx API but without the generated code by the Designer. I'm exploring this possibility to add an UI to a project where I use another RTOS. If I got it right, I believe that FreeRTOS is the only middleware available in CubeMX. I also understand that we can bring to CubeIDE projects using CMake but haven't explore it.
I will follow your suggestion and use the generated files, code and create my own. I don't know if this even makes much sense but I will try it.
Thanks again for taking the time.
Kind regards,
Tiago
2025-06-23 7:45 AM
Sorry, but i mean you try somethink outside TGFX scope. Primary TGFX dont require RTOS, and can use any...
Secondary generate fonts and images without designer is hardcore job. Too generated is transitions for events, next timewasting whn not use designer.
Why you not simply use designer and generated files use in your IDE your way...?
2025-06-23 8:28 AM
You can use TouchGFX and also use TouchGFX Designer with FreeRTOS, with another RTOS or even without RTOS : https://support.touchgfx.com/docs/development/touchgfx-hal-development/scenarios/scenarios-configure-rtos
From your previous message it seemed you did not want to use the Designer because you thought it was only available with FreeRTOS right?
Yes, since recently, TouchGFX supports CMake but it is still simpler to use GCC.
I recommend you to use TouchGFX and TouchGFX Designer, it would be way easier.
Regards,
2025-06-24 1:32 AM
Thank you very much your help.
I'm still learning how to navigate all this information. But also super excited to explore this stm world.
Best regards,
Tiago