Skip to main content
JPark.14
Associate III
September 25, 2019
Question

TouchGFX designer "Generate Assets Error"?

  • September 25, 2019
  • 7 replies
  • 2205 views

I installed the STM32Cube related programs in the following order.

And all programs are up to date.

(1) STM32CubeMX

(2) TrueStudio

(3) STM32CubeProg

(4) STMCubeL4

(5) STM32CubeIDE

(6) TouchGFX designer

When I created a sample to test TouchGFX designer, but I just got "Error during code generation" after the sample was created.

I don't know why and how to..

Please help me about this matter.

Thanks in advance.

This topic has been closed for replies.

7 replies

Martin KJELDSEN
Principal III
September 25, 2019

The designer runs make.

Try typing ( in the touchgfx environment in the root of your application )

make -f simulator/gcc/Makefile clean assets

Let me know what it says.

/Martin

JPark.14
JPark.14Author
Associate III
September 25, 2019

Thank you for your response..

You mean the following picture? Or please let me know what I have to do. Thanks in advance!

0690X000009jCMtQAM.jpg

Martin KJELDSEN
Principal III
September 25, 2019

Okay, so CreateProcess fails. This is usually indicative of an additional msys.dll in your path. Do you have any others in your path? Some have fixed this by "rebasing" their msys.dll. You should be able to find some information about that either here or on your favorite search engine. Or you could remove the additional msys.dll along your path if you're not using it.

/Martin

JPark.14
JPark.14Author
Associate III
September 25, 2019

​I found "CreatProcess failed" is caused by absence of "ruby" path of environment variable in my windows. So this is not a point to solve the problem.

After I added the ruby's path variable, no problem in dos command or sh command prompt to execute "make". But I still get "Error during code generation" when I click the button of "Generate Code" and get "Unable to launch simulator" when I click the "Run Simulator" button.

Please help me solve this problem..

Thanks in advance!

JPark.14
JPark.14Author
Associate III
September 25, 2019

msys.dll means msys-1.0.dll, Right? ​I don't know any idea about "rebasing". Instead of "rebasing", I removed all path variables related to "msys*.dll" and rebooted my laptop. But I still have the same unwanted result. I will check the path variables in my windows again and I will try "rebasing" from googling. Thank you for your quick response. After I try it, I'll ask you again.

JPark.14
JPark.14Author
Associate III
September 25, 2019

​I found a strange thing. I added "D:\TouchGFX\4.10.0\env\MinGW\msys\1.0\Ruby193\bin\" to my path variable and I try "make" in dos command prompt like the following picture. It seems OK but the toughGFX designer shows still "Error during code generation"..

Could you explain about what's the difference and any solution in toughGFX designer?

Thanks in advance.

JPark.14
JPark.14Author
Associate III
September 25, 2019

Additional one thing is... Clicking "Run Simulaor"​ make an error as well. ==> "Unable to launch simulator"