Skip to main content
DSham
Associate
January 23, 2019
Question

TouchGFX Code generating and Simulator error

  • January 23, 2019
  • 59 replies
  • 17063 views

I installed touch 4.10

select STM32429I-Disc1

after combining package:

1 At startup and when I pressed "Run Target" or "Generate Code" the program shows:

"Error during code generation".

2 When I pressed "Run Simulator":

"Unable to lounch simulator".

When forming a project from CubeMX, the same thing happens.

Does anyone know what's the matter?

This topic has been closed for replies.

59 replies

MedBoy
Visitor II
January 13, 2021

Hi @Mon2​ ,

I made your suggests. I select and import "Pool Demo". gave below error ;

Run Simulator

  Copy Framework

    Copying TouchGFX framework version 4.16.0 to C:\TouchGFXProjects\MyApplication\Middlewares\ST\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/include/gui_generated/pooltemp_screen/PoolTempViewBase.hpp

    Wrote generated/gui_generated/src/common/FrontendApplicationBase.cpp

    Wrote generated/gui_generated/src/main_screen/MainViewBase.cpp

    Wrote generated/gui_generated/src/pooltemp_screen/PoolTempViewBase.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

    Sistem belirtilen yolu bulamiyor.

    Failed

  Failed

Mon2
Senior III
January 13, 2021
Ok. I think something is wrong with your tool installation. Please start again and install the latest touch gfx again and be sure your ST Cube ide is the latest version and install again if necessary.
Also recommend to download the latest STM programmer tool.
With only the Pool Lights gui, it has to work. Do not add any widgets. Just import the gui example for these tests.
Please post your results.
MedBoy
Visitor II
January 13, 2021

hello @Mon2​ ,

My board is STM32F746G Discovery Kit. but this is not important now. because i can not run project with simulator :)

should i install stm32cubeide with touchgfx? i install cubeide but i can not install toolchain. gave me error attached picture.

also i uninstall all programs, reinstall. but results are same .

Mon2
Senior III
January 13, 2021
Select the firmware updater as linked in the pop-up screen. Allow it to update your tools.
Will try the same procedure once at the office.
The issue is that you are compiling for a cpu and that cpu series is not yet supported in your tool chain installation.
That is why you are receiving the path is missing error code.
Once you install the target cpu compiler support, this will all work.
Keep going and post your results.
MedBoy
Visitor II
January 13, 2021

Hi again and thanks for your helps. you are so uncomplaining :) thanks again.

now i am installing toolchain from toolchain manager as you can see in picture. i gave that error.

Mon2
Senior III
January 13, 2021
Select Install anyways.
MedBoy
Visitor II
January 13, 2021

i installed 2 segment . but i bought same error. should i change another settings?

Mon2
Senior III
January 13, 2021
It should be ok to "APPLY & CLOSE" this screen.
Continue the installation process to it is completed.
Then test again with:
1) Launch the STM32 IDE -> start a new project -> Board Selector -> locate the same kit you own -> proceed to allow the toolchain to build an empty skeleton of the project.
2) If anything is missing for this target kit, the tools will auto-install for you.
3) Then Project -> Build all. Does this compile ok for you under the STM32 IDE ? If yes, close this toolchain and run the TouchGFX toolchain and attempt your Pool Lights GUI demo again using only the SIMULATOR. Does it build ok now?
Need to get ready for the office. If you are still facing issues, we can try to join with TeamViewer. Will be in about 90 minutes from now = 10:30 AM EST (Canada).
I think you are really really really close to getting this working. Root cause is your toolchain not being properly installed.
MedBoy
Visitor II
January 13, 2021

this is my settings

MedBoy
Visitor II
January 13, 2021

Im so happy for your helps. we can try with teamviewer. this is my e-mail address. we can contact via e-mail after that if you want too. i will sent to you my id and password 2 hour later.

Mon2
Senior III
January 13, 2021
No worries. Just emailed you. I am now at the office and will attempt the same kit and demo on the simulator. May even have the same hardware but need to do some serious digging.
Mon2
Senior III
January 13, 2021

Just a quick update for anyone following this thread...

1) Updated the STM32 cube IDE to 1.5.1 (was on 1.5)

2) Selected the STM32F746G_Discovery Kit which installed other dependent files for this target.

3) After completion, important that the STM32 Cube IDE can build this wizard generated basic project. If it does not build, the TouchGFX will also fail. That is our experience.

4) After this proper build, the TouchGFX was still failing but we observed the log of the compilation and the developer has spaces and some characters in the Windows user name foldername. He will now re-install a fresh Windows 10 OS with a short folder name (without these characters) -> then a fresh copy of the ST tools to test again.

My local PC on Windows 10 and a simple folder name is allowing all demo code to compile ok and the TouchGFX (gcc compiler) compiles ok.

MedBoy
Visitor II
January 13, 2021

Hi everyone,

first of all, thank you sooooo much @Mon2​ and @Martin KJELDSEN​ 

@Mon2​  solved my problem with teamviewer. he is very very gentleman and good person. my problem is just windows 10 user name that has space and some character. i reinstalled windows 10 with valid user name. so touchgfx is working fine.:ok_hand:

Martin Stig STISSING
ST Employee
June 29, 2023

Hi @fpgiovanini

It appears you have responded to an old community post.

Please create a new post describing your problem. Include steps done, steps to reproduce, what is working, what is not working, environment.

Thanks in advance.

MM..1
Super User
June 29, 2023

Isnt first outdated post in this "NEW BEST FORUM PORTAL" every new version is worst