cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Code Generation Issue – Permission Denied on .cproject File

Shivani
Senior

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:

  • TouchGFX Version: 4.26.0
  • IDE: STM32CubeIDE
  • OS: Windows
  • Target MCU: [Please specify MCU:STM32H745XIH6]
  • Project generated from STM32CubeMX and integrated with TouchGFX

Observations:

  • Asset generation completes successfully.
  • Failure occurs only when TouchGFX tries to update the STM32CubeIDE .cproject file.
  • The code generation process stops at the "Post Generate Target" stage.

Could anyone please advise:

  1. What could cause the .cproject file permission issue?
  2. Is this related to STM32CubeIDE locking the file?
  3. Are there any recommended steps to resolve this issue?
  4. Has anyone encountered the same problem with TouchGFX 4.26.0?

Any guidance would be greatly appreciated.

Thank you.

Shivani e.

0 REPLIES 0