2021-12-08 08:44 AM
2021-12-08 10:04 AM
so, what tools are you using and where is the (stripped down) code (Makefile)?
2021-12-08 11:56 AM
Sorry my question was too general. I started TouchGFX 4.18.0. Created a project from the template for STM32H745I-Disco. Added a box, made it blue. Added a button with text and compiled it.
I could not get it to download with this basic setup to the target. It would compile but would give me an error when I downloaded it.
*************************************************
Reading CM7/TouchGFX/application.config
Generating CM7/TouchGFX/generated/images/src/__designer/image_Blue_Buttons_Round_Edge_small.cpp
Generating CM7/TouchGFX/generated/images/src/__designer/image_Blue_Buttons_Round_Edge_small_pressed.cpp
Generating CM7/TouchGFX/generated/images/include/BitmapDatabase.hpp
Generating CM7/TouchGFX/generated/images/src/BitmapDatabase.cpp
make[2]: *** No rule to make target 'CM7/TouchGFX/assets/texts/texts.xlsx', needed by 'CM7/TouchGFX/generated/texts/include/texts/TextKeysAndLanguages.hpp'. Stop.
make[2]: Leaving directory 'c:/TouchGFXProjects/MyApplication_4'
make[1]: *** [all] Error 2
makefile_cm7:49: recipe for target 'all' failed
make[1]: Leaving directory 'C:/TouchGFXProjects/MyApplication_4/gcc'
../../gcc/Makefile:10: recipe for target 'flash' failed
make: *** [flash] Error 2
Failed
Failed
2022-02-25 07:33 AM
Go into the CM7 makefile for your project and change "text_database := $(asset_texts_input)/texts.xlsx" to "text_database := $(asset_texts_input)/texts.xml". That did the trick for me, and you will only have to do this once. I have regenerated code in TouchGFX Designer multiple times and it didn't overwrite this ammendment. I think it's because ST switched the text format from .xlsx to .xml recently... Hope this helps!