Skip to main content
DSham
Associate
Jan 23, 2019 11:35 AM UTC
Question

TouchGFX Code generating and Simulator error

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

DSham
DShamAuthor
Associate
Feb 12, 2019 6:11 AM UTC

I take any demo project fo stm32f429i-disc1

Mon2
Senior III
Feb 15, 2019 2:24 AM UTC

@DSham​ , review this thread for complete details on how to build for stm32f429i-disc1:

https://community.st.com/s/question/0D50X0000A4pPgPSQU/stm32f2429-disc1-configuration-with-touchgfx-cubemx-50

You can use IAR or SW4STM32 (free) compilers. Good luck!!

DSham
DShamAuthor
Associate
Feb 15, 2019 6:10 AM UTC

SW4STM32 does not help.

the result is the same

MedBoy
Visitor II
Jan 4, 2021 8:05 PM UTC

Hello @Martin KJELDSEN​ 

My problem is like this problem.

I use Windows 10 Pro 64 bit , Touchgfx 4.16.0 and STM32F746G_DISCO board.

I just added a box and button then click "Run Simulator", so Touchgfx gave to me Error 2 as below;

What is my problem?

**********************************************************************************************************

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/screen1_screen/Screen1ViewBase.hpp

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

    Wrote generated/gui_generated/src/screen1_screen/Screen1ViewBase.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 gui/include/gui/common/FrontendApplication.hpp

    Wrote gui/include/gui/common/FrontendHeap.hpp

    Wrote gui/include/gui/model/Model.hpp

    Wrote gui/include/gui/model/ModelListener.hpp

    Wrote gui/include/gui/screen1_screen/Screen1Presenter.hpp

    Wrote gui/include/gui/screen1_screen/Screen1View.hpp

    Wrote gui/src/common/FrontendApplication.cpp

    Wrote gui/src/model/Model.cpp

    Wrote gui/src/screen1_screen/Screen1Presenter.cpp

    Wrote gui/src/screen1_screen/Screen1View.cpp

    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

    Reading ./application.config

    Generating generated/images/src/__designer/image_Blue_Buttons_Round_Edge_small.cpp

    Generating generated/images/src/__designer/image_Blue_Buttons_Round_Edge_small_pressed.cpp

    Generating generated/images/include/BitmapDatabase.hpp

    Generating generated/images/src/BitmapDatabase.cpp

    "\x9E" to UTF-8 in conversion from Windows-1254 to UTF-8

    an error occurred in converting texts:

     

    "\x9E" to UTF-8 in conversion from Windows-1254 to UTF-8

    Cleaning generated files from generated/texts and generated/fonts.

    generated/simulator/gcc/Makefile:219: recipe for target 'texts' failed

    make[1]: *** [texts] Error 1

    simulator/gcc/Makefile:32: recipe for target 'assets' failed

    make: *** [assets] Error 2

    Failed

  Failed

******************************************************************************************

Martin KJELDSEN
Principal III
Jan 5, 2021 10:06 AM UTC

Hi. Looks like you may have some weird characters in your text sheet - can you confirm?

/Martin

MedBoy
Visitor II
Jan 5, 2021 10:45 AM UTC

Hi @Martin KJELDSEN​ ,

No, I just added a box and a button. there is no weird character.

MedBoy
Visitor II
Jan 7, 2021 2:08 PM UTC

Hi @Martin KJELDSEN​ ,

I seen a makefile in my touchgfx project. (C:\TouchGFXProjects\myTest\gcc\Makefile)

should i added that your write code in this makefile?

sorry for my bad touchgfx info :( I am so new for touchgfx

MedBoy
Visitor II
Jan 12, 2021 7:44 PM UTC

Hi again @Martin KJELDSEN​ ,

I understood how i can do environment and makefiles commands. but unfortunetly it was unsuccessfull.

I found some problems my project file. I added 2 files ; my home pc and my work pc screenshots. there is no some files such as build folders in my home pc. so i think touchgfx could not do compile and simulator. what do you think about that problem?

MedBoy
Visitor II
Jan 12, 2021 7:44 PM UTC

this is my home pc screenshot's.

MedBoy
Visitor II
Jan 12, 2021 8:56 PM UTC

sorry. this is my home pc screenshot.

Mon2
Senior III
Jan 12, 2021 11:19 PM UTC

Hi. Jumping into the middle of this thread :)

Any reason as to why you are using the older version of the TouchGFX toolchain? The latest version is now 4.16.0. Been out of the loop for a bit and just updated my tools to the latest ST compiler and the TouchGFX 4.16.0. Ran a quick demo of the Pool Lights screen on our STM32F429 kit - ran fine.

Hope to use the latest suite of tools to build up some new code.

Can you upgrade your tools to the latest and just start with a simple example GUI?

So far from the very quick review today, the tools have come a long ways :) Very nice !!

Post your results after the upgrades..have the same kits here so perhaps we can help as we proceed with our development.

MedBoy
Visitor II
Jan 13, 2021 6:00 AM UTC

Hi @Mon2​ , thanks for your jumping =)

Already i am using 4.16.0 version. I just added a box and button, after that run simulator. that is all. i attached the touchgfx folder of my project.

Also i just installed touchgfx. should i install another program with touchgfx?

Mon2
Senior III
Jan 13, 2021 7:53 AM UTC
Ok. Please try the following steps..
1) start a fresh project with TouchGFX. Select this kit. Be sure the picture of the kit matches your PCB.
2) once you are inside the TouchGFX canvas editor view...select the first pull down menu and select Import GUI.
3) then select the Pool Lights demo gui.
4) Save All.
5) Select the Simulator. Do you see the pool lights graphics with an On / Off button? It should toggle the lightbulb color.
6) Quit the simulator with the top right X of the simulated screen.
7) Select Run Target. Does this compile ok and reflash your kit with the same demo? It should. Select the on / off to toggle the same light bulb graphic but all on your kit lcd.
Post your results. Post your error code if any.
We are on windows 10. Ran fine on our lab system and within minutes from start to finish. Will be working on this project at the office today.
Back to my beauty rest. Will check back later....