cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Code generating and Simulator error

DSham
Associate II

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?

59 REPLIES 59
YJMoon
Associate III

It seem to be similar to the problem I experienced.

I think this problem is caused by the overlapping? base address of 'msys-1.0.dll'.

So, download 'rebase.exe' or whatever and change the address of msys-1.0.dll

in the folder where TouchGFX is installed and try simulator again.

Martin KJELDSEN
Chief III

Hi @DSham​,

Can you share your log of what happened? Which version of the application template are you using?

Best regards,

Martin

DSham
Associate II

Detailed Log:

C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb:94:in `exist?': "\x98" to UTF-8 in conversion from Windows-1251 to UTF-8 (Encoding::UndefinedConversionError)

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/defaults.rb:94:in `default_path'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb:73:in `default_path'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb:65:in `split_gem_path'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/path_support.rb:32:in `initialize'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:376:in `new'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:376:in `paths'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:422:in `path'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:979:in `dirs'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:831:in `stubs'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:1036:in `find_by_path'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems.rb:209:in `try_activate'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:126:in `rescue in require'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:40:in `require'

from C:/TouchGFXProjects/MyApplication5/Middlewares/ST/TouchGFX/touchgfx/framework/tools/textconvert/lib/excel_reader.rb:14:in `<top (required)>'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'

from C:/TouchGFXProjects/MyApplication5/Middlewares/ST/TouchGFX/touchgfx/framework/tools/textconvert/lib/text_entries_excel_reader.rb:14:in `<top (required)>'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'

from C:/TouchGFXProjects/MyApplication5/Middlewares/ST/TouchGFX/touchgfx/framework/tools/textconvert/lib/generator.rb:14:in `<top (required)>'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'

from C:/TouchGFX/4.10.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'

from ../../Middlewares/ST/TouchGFX/touchgfx//framework/tools/textconvert/main.rb:16:in `<main>'

simulator/gcc/Makefile:250: recipe for target 'generated/texts/include/texts/TextKeysAndLanguages.hpp' failed

make[1]: *** [generated/texts/include/texts/TextKeysAndLanguages.hpp] Error 1

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

make: *** [assets] Error 2

DSham
Associate II

Used:

TouchGFX 4.10.0

Open any project from sample

Martin KJELDSEN
Chief III

Hi,

Okay, that looks like your text generation fails. And you do not have anything in your text sheet? Looks like there are some difficulties converting from Windows-1251 which is related to cyrillic.

DSham
Associate II

On Windows 7 Pro 64-bit SP1 don't work!!! (at work).

Administrators could not do anything.

Tried to reinstall but the result is the same.

There were no difficulties.

On Virtual Machine 32-bit all Ok (at work)

On Windows 10 64-bit all Ok (at home).

Martin KJELDSEN
Chief III

Hi @DSham​,

I will try to check what the issue could be with this particular combination of windows/SP.

Thanks

Mon2
Senior III

Hi @Martin KJELDSEN​ - may be facing the same issue in trying to assist another developer using the STM32F469i-DISCOVERY kit. Posted on another thread.

Can you advise on what may be the root cause of the following? Any idea to fix this? Thanks.

0690X000006DT6TQAW.png

Hi @Mon2​,

Looks like linker fails on locating three libraries. Can you check your application for the presence of these? (Inside Middlewares/ST/TouchGFX/lib). If they're present there the Makefile is probably pointing to the wrong location.

Let me know!

Best regards,

Martin