Skip to main content
Slh
Senior
October 8, 2020
Solved

TouchGFX Generate Code Error: (Errno::EACCES)

  • October 8, 2020
  • 1 reply
  • 897 views

When I open the TouchGFX application from the desktop, the code generation operation done without Error.

But when I open the TouchGFX program from my project folder, I get error (Errno::EACCES) when creating code in TouchGFX software:

Generate Code
 Generate
 Done
 Generate Assets
 make -f simulator/gcc/Makefile assets -j8
 Reading ./application.config
 Done
 Post Generate
 touchgfx update_project --project-file=simulator/msvs/Application.vcxproj
 Done
 Post Generate Target
 touchgfx update_project --project-file=../MultiControl.ioc --platform=m7
 C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/touchgfx-cli-4.14.0/lib/touchgfx/generators/cubeide_project_updater.rb:200:in `initialize': Permission denied - ../.cproject (Errno::EACCES)
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/touchgfx-cli-4.14.0/lib/touchgfx/generators/cubeide_project_updater.rb:200:in `open'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/touchgfx-cli-4.14.0/lib/touchgfx/generators/cubeide_project_updater.rb:200:in `write_project_files'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/touchgfx-cli-4.14.0/lib/touchgfx/generators/cubeide_project_updater.rb:55:in `run'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/touchgfx-cli-4.14.0/lib/touchgfx/generators/cubemx_project_selector.rb:51:in `run'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/touchgfx-cli-4.14.0/lib/touchgfx/generators/update_project.rb:56:in `run'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/touchgfx-cli-4.14.0/lib/touchgfx/cli/inside.rb:46:in `update_project'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/touchgfx-cli-4.14.0/lib/touchgfx.rb:16:in `<module:CLI>'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/touchgfx-cli-4.14.0/lib/touchgfx.rb:9:in `<module:TouchGFX>'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/touchgfx-cli-4.14.0/lib/touchgfx.rb:8:in `<top (required)>'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:55:in `require'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/lib/ruby/gems/1.9.1/gems/touchgfx-cli-4.14.0/bin/touchgfx:6:in `<top (required)>'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/bin/touchgfx:22:in `load'
 	from C:/TouchGFX/4.14.0/env/MinGW/msys/1.0/Ruby193/bin/touchgfx:22:in `<main>'
 Nothing to update
 Failed
 Failed

The Folder and Files have Read/Write Access.

This topic has been closed for replies.
Best answer by Slh

I found the answer. The .cproject file in Cube-Project was hidden. When I just uncheck the checkBox of hidden in file properties, the software generate code without error!!

1 reply

Slh
SlhAuthorBest answer
Senior
October 8, 2020

I found the answer. The .cproject file in Cube-Project was hidden. When I just uncheck the checkBox of hidden in file properties, the software generate code without error!!