2025-06-11 8:07 AM
Dear Gfx Team,
I worked on a project using CubeIDE 1.17.0 and GfxDesigner 4.24.1.
I installed and un-installed 4.25.0.
Now, when I open \TouchGFX\mcu_project.touchgfx with 4.24.1 and press F4/F5, the version in \mcu_project.ioc is changed from 4.24.1 to 4.25.0.
Why is that and how to stop it please ?
Thank you
2025-06-12 1:10 AM
Hello @ferro ,
How did you uninstall TouchGFX?
When you open STM32CubeMX, go into "Help" => "Manage embedded software packages" => "STMicroelectronics" => scroll down => "X-XUBE-TOUCHGFX", what version do you see there?
Regards,
2025-06-12 1:33 AM - edited 2025-06-12 1:34 AM
Thanks for your prompt reply.
>> "When you open STM32CubeMX, what version do you see there?"
>> "How did you uninstall TouchGFX?"
I think this might be where the problem is.
So I
- had two TouchGfx installed : 4.24.1 and 4.25.0
- I noticed the problem with .ioc
- i deleted folder c:\TouchGFX\4.25.0 (i forgot it is installed)
- the problem with .ioc did not go away
- i realised TouchGfx is installed so I tried to uninstall 4.25.0 'properly' via 'Add Remove Software' - it hanged so unistalling did not end correctly
- i installed 4.25.0 again so I could uninstall it properly
- this time 4.25.0 uninstalled Okay
- the problem with .ioc did not go away
I restarted the machine few times in the process to see if fresh system boot helps but no good
I guess the way I tried to remove 4.25.0 caused some confusion in Windows REGISTERs.
What do you think ?
2025-06-12 1:48 AM
The windows program uninstaller is limited.
Try to look for TouchGFX-4.25.0.msi:
This is the installer and it can also uninstall.
This installer is more aware of the environment used by TouchGFX.
I found it in C:/Users/myName/STM32Cube/Repository/Packs/STMicroelectronics/X-CUBE-TOUCHGFX/4.25.0/Utilities/PC_Software/TouchGFXDesigner
Perhaps your best bet is to uninstall using the TouchGFX Setup.
You can look for the TouchGFX-4.25.0.msi file directly with a software such as Everything or, if you don't find such file, re-install the version you want to properly uninstall.
Regards,
2025-06-12 8:31 AM
I installed and uninstalled 4.25.0 as you suggested but no luck. I'll come to that later.
Before I installed/uninstalled 4.25.0, I searched for TouchGFX-4.25.0.msi
>> "Try to find [...] with a software such as Everything"
Yes, Everything is in my 'survival kit' since you told me about it - the tool is godsend.
So I found TouchGFX-4.25.0.msi, but as I search for sub-string "4.25.0", I found a folder(or a file ? dont remember) in "c:\TouchGFX\4.24.1\" with substring "4.25.0" in it.
I found it strange why 4.24.1 should have anything with 4.25.0 in it. I deleted it.
Now, there is this error when running 4.24.1:
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/bin/touchgfx:23:in `load': cannot load such file -- C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.25.0/bin/touchgfx (LoadError)
from C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/bin/touchgfx:23:in `<main>'
Failed
line 23 in file "C:\TouchGFX\4.24.1\env\MinGW\msys\1.0\Ruby30-x64\bin\touchgfx" is here
load Gem.activate_bin_path('touchgfx-cli', 'touchgfx', version)
No idea where "activate_bin_path" could be set. I looked into my OS environment variables and nothing with 4.25.0 there.
>> "This installer is more aware of the environment used by TouchGFX."
Very true, will try to remember that.
I guess the easiest way out is to uninstall 4.24.1 and install it again. This is the only TouchGfx version installed on my system.
Or would you like me to give you some log so you can catch possible bug ?
Back to 4.25.0 install/uninstall. During running uninstall from TouchGFX-4.25.0.msi, I got error screen. I copy here last 2 screens
What do you think ?
2025-06-12 8:39 AM
I forgot to say that with the error below, the .ioc is not changed now to 4.25.0.
Now, there is this error when running 4.24.1:
Post Generate touchgfx update_project --project-file=simulator/msvs/Application.vcxproj C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/bin/touchgfx:23:in `load': cannot load such file -- C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.25.0/bin/touchgfx (LoadError) from C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/bin/touchgfx:23:in `<main>' Failed