2024-07-24 03:29 AM
Generating Code in Post Generate Target step failed,
I'm making custom board project using STM34F411E-DISCO board and LCD with SPI 1 connectivity, after configure board in STM32CubeMX ver 6.12 --> Generate Code --> add TouchGFX_DataTransfer.c and .h library --> open the project in TouchGFX, I put box in my screen, and tried to generate code to test configuration and got failed massage when generate the code. here the failed massage:
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
D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.0/lib/touchgfx/generators/keil_project_updater.rb:313:in `check_compiler_options': undefined method `text' for nil:NilClass (NoMethodError)
from D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.0/lib/touchgfx/generators/keil_project_updater.rb:35:in `run'
from D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.0/lib/touchgfx/generators/cubemx_project_selector.rb:106:in `run'
from D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.0/lib/touchgfx/generators/update_project.rb:115:in `run'
from D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.0/lib/touchgfx/cli/inside.rb:48:in `update_project'
from D:/TouchGFX/4.24.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 D:/TouchGFX/4.24.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 D:/TouchGFX/4.24.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 D:/TouchGFX/4.24.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 D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.0/lib/touchgfx.rb:16:in `<module:CLI>'
from D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.0/lib/touchgfx.rb:9:in `<module:TouchGFX>'
from D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.0/lib/touchgfx.rb:8:in `<top (required)>'
from <internal:D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/lib/ruby/gems/3.0.0/gems/touchgfx-cli-4.24.0/bin/touchgfx:6:in `<top (required)>'
from D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/bin/touchgfx:23:in `load'
from D:/TouchGFX/4.24.0/env/MinGW/msys/1.0/Ruby30-x64/bin/touchgfx:23:in `<main>'
Failed
Failed
The project I copied from GitHub Work just fine, here the link:
https://github.com/controllerstech/STM32/tree/master/TOUCH%20GFX/ILI9341%20SPI
I tried to configure TouchGFX + Keil V5 with compiler ARMCLANG v6.22.