2024-09-24 04:57 AM - edited 2024-09-27 03:30 AM
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.
This would mirror auto copy of the "./touchgfx" folder into project if not present.
Something like this:
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.
Solved! Go to Solution.
2024-09-27 01:15 AM
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,
2024-09-24 05:08 AM
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)
2024-09-26 03:26 AM - edited 2024-09-26 04:58 AM
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:
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.
2024-09-27 01:15 AM
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,
2024-09-27 03:41 AM
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.