Skip to main content
BJens.1
Associate II
February 5, 2021
Solved

I'm a newbie, so please be gentle to me :-) Installing TouchGFX at default location. But testing out just simulator doesn't bring up the simulator window. Why could that be? Cheers Bent

  • February 5, 2021
  • 6 replies
  • 1926 views

..

This topic has been closed for replies.
Best answer by Romain DIELEMAN

Could you try to run the simulator from the TouchGFX environment ( follow this article ) ?

Could you also try to create another project with a Application template for any development board and a UI template/demo ?

6 replies

Romain DIELEMAN
ST Employee
February 5, 2021

Hi,

That is intriguing. Are there any error message ? Do you have spaces in the folder path (shouldn't if at default location since it would be /c/TouchGFX but could you verify ?) ? Are you using a private or company computer ? There could be conflicts with your firewalls.

/Romain

BJens.1
BJens.1Author
Associate II
February 5, 2021

I don't see any errors. I have installed it in the default location (wondering why it is not able to install in "Program Files" hence we are in 2021 I like to have my programs installed in programs location and not on the root). :)

I use a company computer, but I should have hole trough.

Here is the output:

Run Simulator
 Copy Framework
 Copying TouchGFX framework version 4.16.0 to C:\TouchGFXProjects\MyApplication_2\touchgfx
 Done
 Generate
 Wrote config/gcc/app.mk
 Wrote config/msvs/Application.props
 Wrote generated/gui_generated/include/gui_generated/common/FrontendApplicationBase.hpp
 Wrote generated/gui_generated/include/gui_generated/common/FrontendHeapBase.hpp
 Wrote generated/gui_generated/include/gui_generated/common/SimConstants.hpp
 Wrote generated/gui_generated/include/gui_generated/main_screen/MainViewBase.hpp
 Wrote generated/gui_generated/src/common/FrontendApplicationBase.cpp
 Wrote generated/gui_generated/src/main_screen/MainViewBase.cpp
 Wrote generated/simulator/gcc/Makefile
 Wrote generated/simulator/include/simulator/mainBase.hpp
 Wrote generated/simulator/msvs/touchgfx.props
 Wrote generated/simulator/msvs/touchgfx_prebuild.targets
 Wrote generated/simulator/msvs/touchgfx_sdl2.props
 Wrote generated/simulator/src/mainBase.cpp
 Wrote generated/simulator/touchgfx.ico
 Wrote generated/simulator/touchgfx.rc
 Wrote generated/simulator/touchgfx.res
 Wrote simulator/gcc/Makefile
 Wrote simulator/main.cpp
 Wrote simulator/msvs/Application.sln
 Wrote simulator/msvs/Application.vcxproj
 Wrote simulator/msvs/Application.vcxproj.filters
 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

Noerrors, but still no window with graphics. Is it relying on java or something else, that it doesn't install by itself?

Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
February 5, 2021

Could you try to run the simulator from the TouchGFX environment ( follow this article ) ?

Could you also try to create another project with a Application template for any development board and a UI template/demo ?

BJens.1
BJens.1Author
Associate II
February 7, 2021

It is run from TouchGFX environment. I have tried with a custom design and with a few UI templates and for the STM32H7B3I-DK board.

But the window I see in every demo video just doesn't show.

I think I'm doing exectly as I'm expected to do.

MM..1
Chief III
February 5, 2021

Exist exe file ?

BJens.1
BJens.1Author
Associate II
February 8, 2021

I can't find any simulator.exe file.

0693W000007EGiZQAW.jpg

BJens.1
BJens.1Author
Associate II
February 8, 2021

I started the TouchGFS Environment 4.16 (the icon of the same name) and ran the lines proposed, and from there the simulatr started and showed the example chosen.

I also saw at another terminal window, that make referred to embarcadero (Ihave embarcadero installed on my computer). So is make invoked from embarcadero because of the environment variables?

If that is the case (I don't know if this is the case, but i suspect it to be) how do I setup the environment to automatically detect the context and then start the right make when the context is embarcadero and the other make when the context is TouchGFX). Or is that not really the problem?

BJens.1
BJens.1Author
Associate II
February 8, 2021

I found out that the environment isn't added to the windows environment varable (which it isn't neither in my other 2 test computers where it works). But adding the path to the environment path in windows made it compile and run the simulator and compile for the target and upload to the target as well.

So now I can start doing some fancy GFX testing :)

Thanks for your help, which gave me some pointers.