cancel
Showing results for 
Search instead for 
Did you mean: 

GfxDesigner: option to auto delete ./touchgfx folder upon exit

ferro
Senior II

Dear Gfx Team,

1. Could you please consider adding project setting to automatically delete ./touchgfx folder when Designer exits or project closed (Ctrl+Q) ?

The folder's size is nearing 300Mb. I have tried many Designer Examples and they consume a lot of disk space because of ./touchgfx folder.

ferro_0-1727178881076.png


This would mirror auto copy of the "./touchgfx" folder into project if not present.

Something like this:

ferro_0-1727433016416.png

 

 

2. Idealy, option to set to auto delete "./simulator/msvs/.vs" folder as well would great as it is often even bigger than ./touchgfx.

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
GaetanGodart
ST Employee

Hello @ferro ,

 

It is important for us to keep a clean working environment.

The feature you requested won't be implemented on incoming minor releases but it will be considered for future major releases.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

View solution in original post

4 REPLIES 4
ferro
Senior II

I deleted libraries from "c:\TouchGFX\4.24.1\touchgfx\lib\core\" which are for MCUs not used in my project so that helped with ./touchgfx folder size. Still, I think it would be an improvement to have the option to remove the folder completely every time Designer exits or project is closed (Ctrl+Q)

unsigned_char_array
Senior III

I like your suggestion, but I don't believe in deleting things by default. If implemented it should be optional and opt-in.

I have all my projects in git and I ignore files I don't need such as build artifacts and temporary files. I do keep generated source files so building is possible without TouchGFX or STM32CubeMX.

I archive all our tools and packs:

  • STM32CubeMX version I use
  • downloaded packs for STM32CubeMX
  • STM32CubeIDE version I use
  • TouchGFX version I use
  • Visual Studio 2022 for simulator debugging


I can build and flash my target (MCU + external FLASH) in STM32CubeIDE and in TouchGFX Designer.
And I can build the simulator in TouchGFX Designer and in Visual Studio 2022 (for debugging).

All my projects' builds are always reproducible without an internet connection and automatically build on a build server. Can be build on Windows and Linux (except simulator).

My .gitignore file:

 

*.bak
Debug/
Release/
TouchGFX/build/
TouchGFX/config/*
TouchGFX/generated/user.config
TouchGFX/*_backup.touchgfx
TouchGFX/simulator/msvs/.vs/
TouchGFX/simulator/msvs/enc_temp_folder/
TouchGFX/screenshots/
*.vcxproj.user
.settings/
Middlewares/ST/touchgfx/lib/core/*
!Middlewares/ST/touchgfx/lib/core/cortex_m7/
Middlewares/ST/touchgfx/lib/core/cortex_m7/*
!Middlewares/ST/touchgfx/lib/core/cortex_m7/gcc/

 

If you have ignored files with .gitignore you can remove temporary files with

git clean -dfX

You could probably find a way to recursively run this command on all your local repos once you have set the .ignore files correctly (and untracked those files and folders). If you are not using git, then you should start doing so. I could help you with setting it up.

My TouchGFX folder is only 30MiB after cleaning and most of that is image assets. After building for simulator it is 62MiB. I checked this with the Windows tool "TreeSize Free".

Edit:
The Middlewares folder is the largest with 279.8MiB. I was able to reduce it to 81.0MiB by removing unused MCUs from the libraries and unused libraries build for non-GCC compilers.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.
GaetanGodart
ST Employee

Hello @ferro ,

 

It is important for us to keep a clean working environment.

The feature you requested won't be implemented on incoming minor releases but it will be considered for future major releases.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hi @unsigned_char_array 

Seems like a rather sophistiocaterd setup you've got. Really helpfull you detail described it. I am not that far yet, I run simulation only. Getting familiar with Gfx, Git. Integration with HW is few months away.

"I could help you with setting it up."
That is a very generous offer, thank you.