2025-12-28 12:32 PM - last edited on 2026-01-02 7:51 AM by Andrew Neil
Hello,
I am trying to run a touchscreen with STM32H7R7L8Hx and I am having multiple issues.
This is the structure I used, I am using FreeRTOS and TouchGFX in the STM32CubeMX. Years ago I run a touchscreen with STM32H7A3RITx, it was easy because it was not asking project structure.
When I add FreeRTOS it is adding both locations, I know I can simply exclude from build the top one but there are more issues.
In the TouchGFX Designer it can't find the project file so it can't add include paths and source files correctly, so I have to make it manually.
I think this is the most important problem, TouchGFX uses older version of FreeRTOS but STM32CubeMX adds newer version of FreeRTOS and I am not able to select FreeRTOS version.
STM32CubeMX Version: 6.16.0
TouchGFX Version: 4.26.0
How can I solve these issues? Thank you.
Solved! Go to Solution.
2026-01-21 1:42 PM
Hello @Osman SOYKURT , I can say its partially solved.
When you generate STM32CubeMX and selected STM32CubeIDE as toolchain "Generate Under Root" MUST NOT be selected like below:
In this way, TouchGFX Designer can do all the configurations (linking the source and header files) successfully.
About the FreeRTOS version mismatch issue, I tried many things like using built-in project (which was using older FreeRTOS version) in TouchGFX Designer as @JohanAstrup suggested, I opened my old working Touch Screen project (STM32CubeMX had to install older version of FreeRTOS and TOUCHGFX software packs). I am not sure what really solved the issue but there is no compilation error anymore. Thank you.
2026-01-02 7:48 AM
Hello @kb24.
I would recommend you to have a look at the STM32H7S78-DK TBS available in TouchGFX Designer, which is using FreeRTOS.
Best regards,
Johan
2026-01-21 6:06 AM
Hello @kb24 ,
Did you find a solution to your issue?
2026-01-21 1:42 PM
Hello @Osman SOYKURT , I can say its partially solved.
When you generate STM32CubeMX and selected STM32CubeIDE as toolchain "Generate Under Root" MUST NOT be selected like below:
In this way, TouchGFX Designer can do all the configurations (linking the source and header files) successfully.
About the FreeRTOS version mismatch issue, I tried many things like using built-in project (which was using older FreeRTOS version) in TouchGFX Designer as @JohanAstrup suggested, I opened my old working Touch Screen project (STM32CubeMX had to install older version of FreeRTOS and TOUCHGFX software packs). I am not sure what really solved the issue but there is no compilation error anymore. Thank you.
2026-01-26 4:26 AM
Hello @kb24 ,
Great to hear you have been able to move on with your project :thumbs_up:
Yes you're completely right about the "Generate under root" checkbox that needs to be unchecked as mentioned in our documentation.