cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX with STM32H745I_DISCO

NSeba
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

7 REPLIES 7
MM..1
Chief II

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

NSeba
Associate III

Thanks for your reply

The First archive contains my project before enabling TouchGFX.

It compiles well.

It is made for STM32H745I-DISCO

NSeba
Associate III

The second archive has TouchGFX enabled, but doesn't compile.

I don't even understand most of the errors.

Both the projects has only Auto-generated code.

MM..1
Chief II

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
Associate III

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

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

NSeba
Associate III

Thank You

I was able to compile the TouchGFX application correctly.

It is working well.