cancel
Showing results for 
Search instead for 
Did you mean: 

STMH7S7 CUBEIDE,Post Generate Target failed。

amb
Associate III

I made a test project for h7s7 using cubeIDE,the structure generated is below:

微信图片_20250613124958.png

Then I opened touchgfx designer and import a blank UI, when I tried to build the project, a error came out:

Generate Code
Generate
Wrote generated/gui_generated/include/gui_generated/screen1_screen/Screen1ViewBase.hpp
Wrote generated/gui_generated/src/screen1_screen/Screen1ViewBase.cpp
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Reading ./application.config
Reading ./target.config
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Post Generate Target
touchgfx update_project
Unable to locate D:/STM32CubeIDE/workspace_1.7.0/7s7Test/.cproject
Failed
Failed

 

The .cproject is actually located in D:/STM32CubeIDE/workspace_1.7.0/7s7Test/Appli/.cproject

but touchgfx designer goes to  wrong folder.

Anyone who can help?

5 REPLIES 5
LouisB
ST Employee

Hello @amb ,

How did you created your project ,you made it from CUBEMX ?

BR,

Louis BOUDO
ST Software Engineer | TouchGFX
amb
Associate III

hello @LouisB 

I use CubeIDE v1.15.

I made it work by copy .cproject file to  D:/STM32CubeIDE/workspace_1.7.0/7s7Test/,

but  not a elegant solution.

LouisB
ST Employee

Hello @amb,

Ok, but when you created the project it was from CubeMX or in TouchGFX designer ?

 

BR,

Louis BOUDO
ST Software Engineer | TouchGFX
amb
Associate III

I created the project in CubeIDE.

Hello @amb,

Since you create your project in CubeIDE and if you plan to Build on target from CubeIDE, this will not cause issue as the files are generated. The post generate is if you want to either run build simulator or on target from the designer.

BR,

Louis BOUDO
ST Software Engineer | TouchGFX