Skip to main content
NSeba
Associate II
September 25, 2022
Solved

TouchGFX with STM32H745I_DISCO

  • September 25, 2022
  • 2 replies
  • 2411 views

I try to make an application with STM32H745I_DISCO. After I enable TouchGFX, and generate code, the project fails to compile.

Did ST started supporting TouchGFX officially on STM32H745I controllers ?

Is there any official documentation/guidelines ?

If anyone is successful in doing the same, please share a demo project with CubeIDE. I don't have access to any other compiler.

This topic has been closed for replies.
Best answer by MM..1

Yes you have right , this CM7 dont work annd ST blame long time TGFX.

For now you can as master use steps:

  1. Opent TouchGFX Designer click create new project
  2. In search entr H74 and choice H745IDISCO
  3. Blanks created click generate and close or continue here
  4. goto folder with created and CubeIDE
  5. double click .project file.

your ok project opens and build in IDE

2 replies

MM..1
Chief III
September 25, 2022

Maybe better is show error and steps , that you do.

NSeba
NSebaAuthor
Associate II
September 26, 2022

Thanks for your reply

The First archive contains my project before enabling TouchGFX.

It compiles well.

It is made for STM32H745I-DISCO

MM..1
Chief III
September 26, 2022

You complete skip important steps for generate project parts.

After add software pack and configure it you generate code for HAL parts , but next step is

once open ... 1_H745_TGFX\CM7\TouchGFX\ApplicationTemplate.touchgfx.part 

generate gui code part. (without errors )

Back in IDE start clean and build.

NSeba
NSebaAuthor
Associate II
September 29, 2022

My TouchGFX shows error,

"Post Generate

       touchgfx update_project --project-file=simulator/msvs/Application.vcxproj

       Done

   Post Generate Target

       touchgfx update_project

       Unable to locate E:/WORKS/STM32/3_WORKS/1_H745_TGFX_Test/.cproject

       Failed

   Failed"

It looks for *.cproject file in the project root directory but the file is in

E:/WORKS/STM32/3_WORKS/1_H745_TGFX_Test/CM7/.cproject

Attached my project just before enabling TouchGFX.

If time permits, please try whether it works for you.

My TouchGFX generator runs in administrator mode.

Following is my *.part file generated by cubeMX

{

 "Application": {

   "Name": "1_H745_TGFX_Test",

   "TouchGfxPath": "../Middlewares/ST/touchgfx",

   "AvailableColorDepths": [ 24 ],

   "AvailableLCDs":

   {

     "24": "LCD24bpp"

   },

   "AvailableResolutions": [

     {

       "Width": 480,

       "Height": 272

     }

   ],

   "PostGenerateTargetCommand": "touchgfx update_project",

   "Family": "STM32H7",

   "SubFamily": "STM32H745/755",

   "Platform": "m7",

   "ProjectFile": "../../1_H745_TGFX_Test.ioc",

   "OptionalComponentsRoot": "../Middlewares/ST/touchgfx_components",

   "OptionalComponents": [

   ]

 },

 "Version": "4.20.0"

}

I think it is a problem with relative locations of files.

please guide

MM..1
MM..1Best answer
Chief III
September 29, 2022

Yes you have right , this CM7 dont work annd ST blame long time TGFX.

For now you can as master use steps:

  1. Opent TouchGFX Designer click create new project
  2. In search entr H74 and choice H745IDISCO
  3. Blanks created click generate and close or continue here
  4. goto folder with created and CubeIDE
  5. double click .project file.

your ok project opens and build in IDE