Skip to main content
Associate II
May 14, 2024
Solved

Touchgfx simulation error

  • May 14, 2024
  • 4 replies
  • 5033 views

Hello everyone,

I recently downloaded TouchGFX version 4.23.2 and tried running the example on my STM32F7508-DK. However, when I click the simulation button, I encounter these errors. Can anyone help me with this issue? I'm running TouchGFX on Windows 11

 

Run Simulator
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
Compile
make -f simulator/gcc/Makefile -j8
Reading ./application.config
Reading ./target.config
/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
/usr/bin/sh: -c: line 0: `C:\Program Files (x86)\GnuWin32\bin\make.exe -f generated/simulator/gcc/Makefile -r -s -rs -j --jobserver-fds=gmake_semaphore_17700 build_executable'
generated/simulator/gcc/Makefile:155: recipe for target 'generate_assets' failed
make[1]: *** [generate_assets] Error 258
simulator/gcc/Makefile:32: recipe for target 'all' failed
make: *** [all] Error 2
Failed
Failed

Best answer by Mohammad MORADI ESFAHANIASL

There is a chance that one of the installed software on your Windows 11 has conflicts with TouchGFX, especially due to these error messages:

 

 


@rohamid wrote:

/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
/usr/bin/sh: -c: line 0: `C:\Program Files (x86)\GnuWin32\bin\make.exe -f generated/simulator/gcc/Makefile -r -s -rs -


Since the TouchGFX code does not change based on the Windows version it is running on, and there are cases that TouchGFX can run with no issues on Windows 11, I would recommend installing TouchGFX on a freshly installed Windows 11 as well to ensure it's functionality. 

But, I'm glad that you can run TouchGFX on Windows 10 correctly.

Best regards,
 

4 replies

ST Employee
May 14, 2024

Hello @rohamid ,

Welcome to the community! 
Have you applied any changes to the Makefile inside your project?
Are you using the TouchGFX Board Setup for STM32f7508 Discovery Kit or are you trying to create your own project?
Can you share the TouchGFXDesigner.log that is available inside AppData\Roaming\TouchGFX-4.23.2 ? (After trying to run the simulator that causes the error)
You can quickly access that folder by typing %appdata% in the windows search bar.

 

Thank you

rohamidAuthor
Associate II
May 15, 2024

No, I just wanted to see the example running in the simulator before downloading it to my development board. When I tried to create my own project, it still wouldn't run in the simulator. I understand, I'll upload the log files. By the way, I also tried with other TouchGFX versions, v4.23.0 and v4.17, and got the same result.

rohamidAuthor
Associate II
May 15, 2024

No, I just wanted to see the example running in the simulator before downloading it to my development board. When I tried to create my own project, it still wouldn't run in the simulator. I understand, I'll upload the log files. By the way, I also tried with other TouchGFX versions, v4.23.0 and v4.17, and got the same result.

Lead II
May 15, 2024

@rohamid wrote:

I recently downloaded TouchGFX version 4.23.2 and tried running the example on my STM32F7508-DK.


What example? There are dozens. I just compiled the keyboard example and the dynamic graph example and both run perfectly fine in the simulator. I simply clicked Examples, select board, STM32F7508-DK and then the example. Then I clicked the play button and it just works.

Please tell us what examples you tried. Have you made any modifications?

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
rohamidAuthor
Associate II
May 15, 2024

When I finished installing the latest version of TouchGFX, version 4.23.2, I tried some examples, such as clock and swipe, as well as a few others (I don't remember exactly). However, none of them worked in the simulator when I clicked the run button. Similarly, when I tried creating a new project, it also didn't run in the simulator. I'm using Windows 11 and maybe I'm missing some dependencies or something (please let me know if there's anything I need to do before starting TouchGFX).

 

I didn't modify anything, I just tried the examples and wanted to see how they work in the simulator. Back when I was using Windows 10, TouchGFX could run in the simulator without any issues.

Lead II
May 15, 2024

I'm using Windows 11 too. I installed TouchGFX V4.23.2 a week ago so it's a pretty fresh installation, though I have rebooted my PC once. Did you reboot your PC?

I see something interesting in the log file: "TouchGFXPackages.Implementation.FileDownloader: Take operation was canceled. IsCancellationRequested=True". Perhaps it's trying to download something and failing.

Have you tried saving the project in a short path without spaces? Such as "C:\source\example1"

Have you tried reinstalling?

"Kudo posts if you have the same problem and kudo replies if the solution works.Click ""Accept as Solution"" if a reply solved your problem. If no solution was posted please answer with your own."
rohamidAuthor
Associate II
July 15, 2024

I still couldn't get the simulator running on Windows 11, even after following the recommendations from @MM..1 However, I tried a fresh install of Windows 10, and I was able to run the simulator there."

ST Employee
July 16, 2024

There is a chance that one of the installed software on your Windows 11 has conflicts with TouchGFX, especially due to these error messages:

 

 


@rohamid wrote:

/usr/bin/sh: -c: line 0: syntax error near unexpected token `('
/usr/bin/sh: -c: line 0: `C:\Program Files (x86)\GnuWin32\bin\make.exe -f generated/simulator/gcc/Makefile -r -s -rs -


Since the TouchGFX code does not change based on the Windows version it is running on, and there are cases that TouchGFX can run with no issues on Windows 11, I would recommend installing TouchGFX on a freshly installed Windows 11 as well to ensure it's functionality. 

But, I'm glad that you can run TouchGFX on Windows 10 correctly.

Best regards,