2026-06-08 1:52 AM
Hello ST Community Team,
We are facing an issue while generating code from TouchGFX Designer (version 4.26.0).
The code generation process starts successfully, and asset generation completes without any errors. However, during the "Post Generate Target" step, TouchGFX fails to update the STM32CubeIDE project files and reports the following error:
Generate Code
Generate
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Reading ./application.config
Reading ./target.config
Done
Post Generate
touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
Done
Post Generate Target
touchgfx update_project
C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.26.0/lib/touchgfx/generators/cubeide_project_updater.rb:263:in `initialize': Permission denied @ rb_sysopen - ../.cproject (Errno::EACCES)
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.26.0/lib/touchgfx/generators/cubeide_project_updater.rb:263:in `open'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.26.0/lib/touchgfx/generators/cubeide_project_updater.rb:263:in `write_project_files'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.26.0/lib/touchgfx/generators/cubeide_project_updater.rb:80:in `run'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.26.0/lib/touchgfx/generators/update_project.rb:117:in `run'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.26.0/lib/touchgfx/cli/inside.rb:48:in `update_project'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.26.0/lib/touchgfx.rb:16:in `<module:CLI>'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.26.0/lib/touchgfx.rb:9:in `<module:TouchGFX>'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.26.0/lib/touchgfx.rb:8:in `<top (required)>'
from <internal:C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.26.0/bin/touchgfx:6:in `<top (required)>'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/bin/touchgfx:23:in `load'
from C:/TouchGFX/4.26.0/env/MinGW/msys/1.0/Ruby30-x64/bin/touchgfx:23:in `<main>'
Writing STM32CubeIDE project file: ../.cproject
Failed
Failed
Environment:
Observations:
Could anyone please advise:
Any guidance would be greatly appreciated.
Thank you.
Shivani e.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.