cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Simulator not working but not giving any errors

barisubasi
Associate II

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:

barisubasi_0-1738067612062.png

 

I just added a white box:

barisubasi_1-1738067648098.png


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

 

 

barisubasi_2-1738067679171.png

 

 

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

 

 

barisubasi_3-1738067746057.png


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.

1 ACCEPTED SOLUTION

Accepted Solutions
barisubasi
Associate II

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!

View solution in original post

12 REPLIES 12
JJhin.1
Senior II

Can you Explain your issue in detail?

barisubasi
Associate II

Of course. I want to try some ui designs in TouchGFX. I created a new project in Simulator type:

barisubasi_0-1738067612062.png

 

I just added a white box:

barisubasi_1-1738067648098.png


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

barisubasi_2-1738067679171.png

 

 

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

barisubasi_3-1738067746057.png


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.

JJhin.1
Senior II

hii @barisubasi  i created same simmulation as you tried.

 

1. i created project : i selected simulator and clicked on creat button.

1st.PNG

 

2. i created gui box:

2nd.PNG

 

3. i generated and clicked on run simulator button. and then simulator screen popuped:

3rd.PNG

so this way you can  simulate GUI on touchgfx. on clicking on RUN button you wont get any kindof exe file.

barisubasi
Associate II

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...

JJhin.1
Senior II

then uninstall TouchGFX and try latest version 

barisubasi
Associate II

already did many times.

LouisB
ST Employee

Hello @barisubasi,

Running the simulator never worked or it worked at some point and stopped working ?

Best regards,

Louis BOUDO
ST Software Developer | TouchGFX

Works fine here with version 4.24.1 in Windows 11.

  1. Create project, I named it community_test
  2. create white box
  3. click Run

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

 

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.

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.