cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX Designer not working at all

MLang.7
Associate III

Hello, I'm trying to get TouchGFX Designer 4.18 running with my H747-DISCO, but the download to the target fails every time. Thats the console output:

   ST-LINK SN : 0024001E3137511439383538

       ST-LINK FW : V3J8M3

       Board      : STM32H747I-DISCO

       Voltage    : 3.26V

       SWD freq   : 24000 KHz

       Connect mode: Normal

       Reset mode : Software reset

       Device ID  : 0x450

       Revision ID : Rev V

       Device name : STM32H7xx

       Flash size : 2 MBytes

       Device type : MCU

       Device CPU : Cortex-M7/M4

       BL Version : 0x90

       Memory Programming ...

       Opening and parsing file: intflash.hex

         File         : intflash.hex

         Size         : 3444 Bytes

         Address      : 0x08100000

       Erasing memory corresponding to segment 0:

       Erasing internal memory sector 8

       Download in Progress:

       ±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±± 0%

       ÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛÛ 100%

       File download complete

       Time elapsed during download operation: 00:00:03.315

       Hard reset is performed

       make[2]: Leaving directory 'c:/TouchGFXProjects/MyApplication_8'

       make[1]: Leaving directory 'C:/TouchGFXProjects/MyApplication_8/gcc'

       make -C C:/TouchGFXProjects/MyApplication_8/gcc/ -f makefile_cm7 flash

       make[1]: Entering directory 'C:/TouchGFXProjects/MyApplication_8/gcc'

       make[2]: Entering directory 'c:/TouchGFXProjects/MyApplication_8'

       Converting images

       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_8'

       makefile_cm7:49: recipe for target 'all' failed

       make[1]: *** [all] Error 2

       make[1]: Leaving directory 'C:/TouchGFXProjects/MyApplication_8/gcc'

       ../../gcc/Makefile:10: recipe for target 'flash' failed

       make: *** [flash] Error 2

       Failed

3 REPLIES 3
JQuan
Associate II

I have almost exactly the same problem. It seems to be related to a change in TouchGFX Designer 4.18.x where they switched from using XLSX to XML formats to store text/string information. I am using a STM32H745I-DISCO. The examples work fine (just tested the up/down buttons one), but when I try to make my own (extremely simple) project I encounter the

make[2]: *** No rule to make target 'CM7/TouchGFX/assets/texts/texts.xlsx', needed by 'CM7/TouchGFX/generated/texts/include/texts/TextKeysAndLanguages.hpp'.  Stop.

problem you observed. I'm guessing there's a template that needs to be updated (by ST). If you roll-back to version 4.17.x does it work?

I noticed another weird thing (maybe normal...I'm not familiar enough with TouchGFX tools to know for sure): the file mentioned in the log seems to get generated momentarily then removed. I made a copy of it before it got removed, and it doesn't even appear to reference the XLSX files.... Here's what my CM7\TouchGFX\generated\texts\include\texts\TextKeysAndLanguages.hpp file looks like (I defined a second language called "Other" while troubleshooting, but you can ignore that)

/* DO NOT EDIT THIS FILE */
/* This file is autogenerated by the text-database code generator */
 
#ifndef TOUCHGFX_TEXTKEYSANDLANGUAGES_HPP
#define TOUCHGFX_TEXTKEYSANDLANGUAGES_HPP
 
enum LANGUAGES
{
    GB,
    OTHER,
    NUMBER_OF_LANGUAGES
};
 
enum TEXTS
{
    T___SINGLEUSE_172W,
    T___SINGLEUSE_8H44,
    NUMBER_OF_TEXT_KEYS
};
 
#endif // TOUCHGFX_TEXTKEYSANDLANGUAGES_HPP

I tried creating a blank XLSX file for `CM7\TouchGFX\assets\texts\texts.xlsx` and this seems to make that error go away!

Instead I see a (presumably harmless):

WARNING: Using "CM7/TouchGFX/assets/texts/texts.xml" instead of "CM7/TouchGFX/assets/texts/texts.xlsx"