cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX - Error during "Generate code"

TechnicalPBG2025
Associate II

Good morning,

I'm trying to generate code for a project made for a 7-inch Riverdi display (RVT79HSSNWC00-B).
When I run "Generate Code" on TuochGFX it gives me the following error:

"Generate Code
Generate
Wrote generated/simulator/src/mainBase.cpp
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.24.1/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.1/lib/touchgfx/generators/cubeide_project_updater.rb:191:in `clean_up_touchgfx_files': undefined method `children' for nil:NilClass (NoMethodError)
from C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.1/lib/touchgfx/generators/cubeide_project_updater.rb:195:in `update_project_file'
from C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.1/lib/touchgfx/generators/cubeide_project_updater.rb:71:in `run'
from C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.1/lib/touchgfx/generators/cubemx_project_selector.rb:106:in `run'
from C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.1/lib/touchgfx/generators/update_project.rb:115:in `run'
from C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.1/lib/touchgfx/cli/inside.rb:48:in `update_project'
from C:/TouchGFX/4.24.1/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.24.1/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.24.1/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.24.1/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.24.1/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.1/lib/touchgfx.rb:16:in `<module:CLI>'
from C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.1/lib/touchgfx.rb:9:in `<module:TouchGFX>'
from C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.1/lib/touchgfx.rb:8:in `<top (required)>'
from <internal:C:/TouchGFX/4.24.1/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.24.1/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.24.1/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.1/bin/touchgfx:6:in `<top (required)>'
from C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/bin/touchgfx:23:in `load'
from C:/TouchGFX/4.24.1/env/MinGW/msys/1.0/Ruby30-x64/bin/touchgfx:23:in `<main>'
.cproject file: ../../STM32CubeIDE/CM7/.cproject
Failed
Failed"

The same project on another PC the code is generated correctly.

Can you help me with this problem?

0 REPLIES 0