Skip to main content
Associate
July 15, 2024
Solved

TouchGFX Designer No File Specified Error

  • July 15, 2024
  • 4 replies
  • 2475 views

I am working to create a GUI and am trying to generate code, however, each time I do, I get an error that "The system cannot find the file specified." as TouchGFX tries to generate assets. A colleague of mine has generated the code on his system and it was able to generate all the code. I have tried uninstalling and reinstalling TouchGFX, yet that did not solve the issue, and would love guidance on how to fix this problem.

Best answer by GaetanGodart

You said you were able to reproduce the steps and get the same result but then you say you are not able to generate code but generating code is part of the steps.
It is generating the code which adds the framework folder.

Please, find the imageconvert folder attached to this message, maybe you can just add it to your project if for some reasons it is the only file that is missing.

 

Regards,

4 replies

GaetanGodart
Technical Moderator
July 16, 2024

Hello @AN2 ,

 

It seems your environment is wrong for some reason.

Maybe you did not properly install TouchGFX and its dependencies.

I invite you to follow this guide to make sure you follow the proper steps: How to TouchGFX: Installing TouchGFX 
Here are the links to the softwares:
st.com/en/development-tools/stm32cubemx.html
st.com/en/development-tools/stm32cubeide.html
st.com/en/development-tools/stm32cubeprog.html
st.com/en/embedded-software/x-cube-touchgfx.html

 

Regards,

AN2Author
Associate
July 16, 2024

Thank you for the quick response! I downloaded the files and it seems to still have this error pop up. I followed the tutorial, but am still receiving this image file not specified error.

GaetanGodart
Technical Moderator
July 17, 2024

1) Can you go to "Config", "Build" and check what is in "Generate Assets Command" such as :

GaetanGodart_0-1721203443027.png

2) Are you using a custom board?

3) Can you try to create a new project directly from TouchGFX Designer and look what is in "Generate Assets Command". For instance, click on "Create new", then type "u5g" and select a STM32U5G9J-DK2 board.

4) Can you check that you have the converters : using-ides-with-touchgfx#asset-generation 

 

Regards,

AN2Author
Associate
July 17, 2024

Hi, 

The generate assets command is the same as yours: make -f simulator/gcc/Makefile assets -j8. The board I am working on is a custom board and when I create a new project from the designer, this is in the box for Generate Assets Command: make -f simulator/gcc/Makefile assets -j8. Also, I do not see a framework folder inside my touchgfx folder which would contain the converters. What is the process of adding this?

GaetanGodart
Technical Moderator
July 18, 2024

I have created a brand new project from STM32CubeMX.
Selected a random board (Nucleo-401).
GO to Middleware, enable TouchGFX, then activate it like so : enabling-touchgfx-generator 
Enable CRC as well.
Generate code using STML32CubeIDE toolchain (basically GCC), uncheck "generate under root".
Then I open the .touchgfx.part file, select "Blank UI", click the "Generate code" button.
From there, the folder "Middleware" is created with the TouchGFX framework, 3rd party, lib and OS.

Are you able to reproduce those steps and get the same result?

If you followed the installation steps, there shouldn't be any issue there.

 

Regards,

AN2Author
Associate
July 18, 2024

I was able to reproduce the steps and get the same result! Yet, for some reason I am still not able to generate the code, are there additional steps that I need to take? I see that there is no imageconvert folder, only a textconvert and videoconvert, is there a way to add imageconvert?

GaetanGodart
GaetanGodartBest answer
Technical Moderator
July 19, 2024

You said you were able to reproduce the steps and get the same result but then you say you are not able to generate code but generating code is part of the steps.
It is generating the code which adds the framework folder.

Please, find the imageconvert folder attached to this message, maybe you can just add it to your project if for some reasons it is the only file that is missing.

 

Regards,

AN2Author
Associate
July 19, 2024

Thank you for your help, I was able to get it to work!

 

GaetanGodart
Technical Moderator
July 25, 2024

I am glad to hear that !:smiling_face_with_smiling_eyes: