Skip to main content
DSham
Associate
January 23, 2019
Question

TouchGFX Code generating and Simulator error

  • January 23, 2019
  • 29 replies
  • 16848 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.

29 replies

YJMoon
Associate III
January 24, 2019

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
Principal III
January 24, 2019

Hi @DSham​,

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

Best regards,

Martin

DSham
DShamAuthor
Associate
January 25, 2019

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
DShamAuthor
Associate
January 25, 2019

Used:

TouchGFX 4.10.0

Open any project from sample

Martin KJELDSEN
Principal III
January 25, 2019

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
DShamAuthor
Associate
January 25, 2019

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
Principal III
January 28, 2019

Hi @DSham​,

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

Thanks

Mon2
Senior III
February 9, 2019

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

Martin KJELDSEN
Principal III
February 11, 2019

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

DSham
DShamAuthor
Associate
February 11, 2019

My TouchGFX works on other PCs (on a virtual machine and at home), a problem with a working PC, administrators cannot help

I compared, all the same on all PC

Mon2
Senior III
February 11, 2019

Hi.

1) Can you post your project that is raising the errors? You can use wetransfer (free) service to post a large file for the access.

2) It appears that you have a working platform for the STM32F429i-DISC1 kit but if you do not, please review:

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

Without the above procedure, the target kit will not work nor compile error-free correctly.

Mon2
Senior III
February 11, 2019

Thanks @Martin KJELDSEN​ , we actually wrote the first article on the integration with IAR about a month ago - took forever to fix the many raised errors but got it working well of weeks of debugging (STM32F429i-DISC1 + IAR or SW4STM32 + CubeMX):

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

On some feedback - Keil appears to be still broken as far as we know with the tool integration. Perhaps the fix for this integration can be raised as a priority of things to fix? :grinning_face:

The next challenge, time permitting, is to see if we can get the STM32F469i-DISCO working with these tools.

Martin KJELDSEN
Principal III
February 12, 2019

Your efforts to help the community are _greatly_ appreciated =) It's great to have guys like you in here.

In terms of Keil support - We want TouchGFX to be a smooth experience with little to no effort to get things running. CubeMX interfaces with lots of other components, but we're working with them to improve integration when possible.