cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX 4.25 cannot generate code properly in MDK5.42.

magicmatrix
Associate II

MCU is STM32H7R/S.

Some paths is incorrect in make script .

Failed Log:

Generate Code
Generate
Done
Generate Assets
make -f simulator/gcc/Makefile assets -j8
Reading ./application.config
Reading ./target.config
../Middlewares/ST/touchgfx/framework/tools/videoconvert/videoconvert.rb:43:in `read': No such file or directory @ rb_sysopen - ../MDK-ARM/AICAMERA_V3_ONLYAPP.uvprojx (Errno::ENOENT)
from ../Middlewares/ST/touchgfx/framework/tools/videoconvert/videoconvert.rb:43:in `check_compiler'
from ../Middlewares/ST/touchgfx/framework/tools/videoconvert/videoconvert.rb:251:in `block in <class:Main>'
from ../Middlewares/ST/touchgfx/framework/tools/videoconvert/videoconvert.rb:101:in `chdir'
from ../Middlewares/ST/touchgfx/framework/tools/videoconvert/videoconvert.rb:101:in `<class:Main>'
from ../Middlewares/ST/touchgfx/framework/tools/videoconvert/videoconvert.rb:19:in `<main>'
generated/simulator/gcc/Makefile:229: recipe for target 'videos' failed
make[1]: *** [videos] Error 1
simulator/gcc/Makefile:32: recipe for target 'assets' failed
make: *** [assets] Error 2
Failed
Failed

4 REPLIES 4
LouisB
ST Employee

Hello @magicmatrix,

How did you create your project ?

BR,
Louis B.

Louis BOUDO
ST Software Engineer | TouchGFX

The project was created using STM32cubeMX

Hello @magicmatrix ,

Did you generatecode in cubeMX and designer before generating in MDK ?

BR,

Louis BOUDO
ST Software Engineer | TouchGFX

After attempts, the following issues arose.

There are two sub-projects under the STM32H7R/S project.

Boot and Appli .

When touchgfx is in Appli project. it is ok.

When touchgfx is in Boot project. Errors will occur.

The STM32CubeMX also has a problem.

It is not possible to choose where to place touchgfx in the project.

Sometimes you can only place it in boot, and sometimes you can only place it in appli.

This is not controlled by the user.