2025-01-28 02:52 AM - edited 2025-01-28 04:38 AM
TouchGFX Simulator is not working and it doesn't give any error while creating code or running the simulator.
I created a new project I didn't even choose a board I tried it with the "Simulator"
I want to try some ui designs in TouchGFX. I created a new project in Simulator type:
I just added a white box:
I generated code:
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
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Done
I clicked "Run Simulator":
Run Simulator
Generate
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Compile
make -f simulator/gcc/Makefile -j8
Done
Run
build\bin\simulator.exe
Done
Done
I tried to search for simulator.exe file in my project directory, but the file is not exist. I'm using 4.24.2 version now.
Since there is no error. I'm lost on debugging. Thx for help.
Solved! Go to Solution.
2025-01-30 03:14 AM
I literally resetted the whole computer just to fix this...
And yes it works now. I do not know why that issue happened but after computer reset and re-installing TouchGFX Designer and Microsoft Visual C++ Redistributable Version from this link : https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
it works now. Thanks for helping!
2025-01-28 03:49 AM
Can you Explain your issue in detail?
2025-01-28 04:37 AM
Of course. I want to try some ui designs in TouchGFX. I created a new project in Simulator type:
I just added a white box:
I generated code:
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
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Done
I clicked "Run Simulator":
Run Simulator
Generate
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Compile
make -f simulator/gcc/Makefile -j8
Done
Run
build\bin\simulator.exe
Done
Done
I tried to search for simulator.exe file in my project directory, but the file is not exist. I'm using 4.24.2 version now.
Since there is no error. I'm lost on debugging. Thx for help.
2025-01-28 10:40 PM
hii @barisubasi i created same simmulation as you tried.
1. i created project : i selected simulator and clicked on creat button.
2. i created gui box:
3. i generated and clicked on run simulator button. and then simulator screen popuped:
so this way you can simulate GUI on touchgfx. on clicking on RUN button you wont get any kindof exe file.
2025-01-28 11:07 PM
Did the same thing. It didn't worked. I opened TouchGFX 4.22.1 Environment and tried the same commands in the output in Designer and it worked. But the commands are not working in the Designer. Also it doesn't give any errors at all...
2025-01-29 01:10 AM
then uninstall TouchGFX and try latest version
2025-01-29 01:45 AM
already did many times.
2025-01-29 03:40 AM
Hello @barisubasi,
Running the simulator never worked or it worked at some point and stopped working ?
Best regards,
2025-01-29 04:29 AM - edited 2025-01-29 04:34 AM
Works fine here with version 4.24.1 in Windows 11.
Project runs in popup.
It also creates an exe file: C:\TouchGFXProjects\community_test\build\bin\simulator.exe
You can try installing the latest VC++ redistributable:
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
2025-01-29 11:11 PM
Already did the updates. I tried the commands in TouchGFX Enviroment and the commands worked perfectly. But they are not working nor giving error in Designer...
I'm using build commands as defaults. I didn't change anything in configurations.