Skip to main content
Senior
March 11, 2025
Question

Infinite loading when generating code

  • March 11, 2025
  • 1 reply
  • 542 views

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

1 reply

GaetanGodart
Technical Moderator
March 12, 2025

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,

PriyankAuthor
Senior
March 12, 2025

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

GaetanGodart
Technical Moderator
March 12, 2025

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,