cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX Project Structure Problems with TouchGFX, and FreeRTOS Version issue with TouchGFX

kb24
Senior

Hello,

I am trying to run a touchscreen with STM32H7R7L8Hx and I am having multiple issues.

kb24_0-1766951830908.png

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.

kb24_1-1766952207310.png

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.

 

kb24_2-1766952366240.png

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.

 

kb24_3-1766953134408.png

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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:

kb24_0-1769030944378.png

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.

View solution in original post

4 REPLIES 4
JohanAstrup
ST Employee

Hello @kb24.

I would recommend you to have a look at the STM32H7S78-DK TBS available in TouchGFX Designer, which is using FreeRTOS.
JohanAstrup_0-1767368850307.png

Best regards,
Johan

 

Osman SOYKURT
ST Employee

Hello @kb24 ,

Did you find a solution to your issue? 

Osman SOYKURT
ST Software Developer | TouchGFX

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:

kb24_0-1769030944378.png

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.

Osman SOYKURT
ST Employee

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.

Osman SOYKURT
ST Software Developer | TouchGFX