‎2019-01-23 03:35 AM
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?
‎2021-01-04 12:05 PM
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
******************************************************************************************
‎2021-01-05 02:06 AM
Hi. Looks like you may have some weird characters in your text sheet - can you confirm?
/Martin
‎2021-01-05 02:45 AM
Hi @Martin KJELDSEN​ ,
No, I just added a box and a button. there is no weird character.
‎2021-01-05 04:26 AM
Hi, thanks for the update. Maybe it's got something to do with the locale, then. Where are you based?
/Martin
‎2021-01-05 05:52 AM
Hi @Martin KJELDSEN​ ,
Programs locations are ; TouchGFX in C:/..., TouchGFX Projects in C:/
They are same drive and location.
‎2021-01-05 06:12 AM
By Locale i mean language, country, and character encoding settings.
‎2021-01-05 06:18 AM
=) Im sorry. Im from Turkey and Im using windows as turkish.
‎2021-01-05 06:22 AM
Don't be sorry!
I think i have a solution for this - I've had another guy from Turkey with roughly the same issue, if i remember correctly, let me try a few things. Might have to get back to you tomorrow.
/Martin
‎2021-01-05 06:25 AM
OK. Im waiting your reply. thanks for your help.
‎2021-01-05 06:56 AM
Try, in your TouchGFX environment:
export LC_ALL=C.iso-8859-1
Then
make -f simulator/gcc/Makefile
To see if it works