cancel
Showing results for 
Search instead for 
Did you mean: 

Infinite loading when generating code

Priyank
Associate III

Hi, when I click generate code, sometimes it gets into a loop of just loading, I've attached a screenshot. When I click generate code again, it usually builds, but it does this quite often. Screenshot 2025-03-11 141414.png

5 REPLIES 5
GaetanGodart
ST Employee

Hello @Priyank ,

 

Can you tell us what software version you are using and what hardware you are using?

 

Could you also share a full screenshot of the debug information because to me it looks like it is stuck in writing to the .cproject file, not to loading to the board.

 

Also, is there some specific case where the infinite loop happens?
Did it happen after you changed something?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hi, my touchgfx is running 4.24.1, this started relatively recently, however I'm not sure what caused it. It happens just about every other time I generate code. The board is a STM32F7xxx.Screenshot 2025-03-12 111241.png

Here is my debug when generating code:

Generate Code Generate 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 .cproject file: ../STM32CubeIDE/.cproject Writing STM32CubeIDE project file: ../STM32CubeIDE/.project Writing STM32CubeIDE project file: ../STM32CubeIDE/.cproject Done Done

The main difference between yours and mine is that I am writing on the .project before writing on the .cproject.

 

Do you have a .project in the same folder as your .cproject?

 

It looks like the Post generate asset gets done.
When you have the infinite message at the bottom, are you able to do something else or is the Designer blocked? Is the .cproject working? Is the generated code in GUI fine? How is it blocking your development workflow?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Yes, I have a .project and .cproject in the same folder. When I get the infinite message, I am able to continue using the application. The generated code and everything else works fine. There is no development block with this, however it makes me click generate again, and the generations take some time (about 15 seconds)

Hello @Priyank ,

 

I have not seen this issue previously.
Could you upgrade to 4.25.0.
If you stay on 4.24.1 I will not be able to push your issue for a fix.

Can you share your full project so I can try it on my PC to see if this is project related or hardware related.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)