2025-01-16 02:33 AM - last edited on 2025-01-16 02:57 AM by Andrew Neil
I am using STM32H747I-DISCO board, and this is the selected board in TouchGFX Designer.
I created the Tutorial 3 Applications with multiple Screens in TouchGFX Designer called DigitalClock app. I added Clock displays and UP/DOWN arrows with its virtual functions. The app works fine in Simulator, hours and minutes can be set to any value between 0-23 and 0-59 range. Overflows are handled right.
Even the DigitalClock runs fine in Visual Studio 2022 (C:\TouchGFXProjects\DigitalClock\CM7\TouchGFX\simulator\msvs\Application.sln). I can set breakpoints, check value of display buffers. It is amazing job guys. Congrats!
The problem begins when I connect the STM32H747I-DISCO board to my PC and I click Program and Run Target in TouchGFX Designer. It fails with a funny "No such file or directory" as the first error (There are other errors and all are related to generating fonts. The first error is
arm-none-eabi-g++: error: CM7/TouchGFX/generated/fonts/src/Font_verdana_20_4bpp_0.cpp: No such file or directory.
But I checked it. The file exists, it is readable and its content looks good to me. I attached the whole log what I got during executing Program and Run Target function in TouchGFX Designer.
I think I am not experienced enough (yet) to resolve this problem.
Best regards,
Louis
2025-01-16 05:41 AM
Hello @Louie88 ,
At which step are you trying to flash?
Are you able to create an empty project, add a textArea and flash?
Regards,
2025-01-16 06:36 AM - edited 2025-01-16 06:37 AM
Hi Gaetan!
Thanks for watching this topic and thanks for your question.
The problem begins after I modify the typography or text of a used TextArea control, like changing font size or adding Wildcard Ranges to 0-9 or changing "New text" to "<value>". After these mods the app still "generates code", it runs in Simulator, but it won't run in the target board because of the describer error.
However, I think that I found that the problem is the cached FONTS and/or TEXTs. So, if I delete all the files from:
../DigitalClock/CM7/TouchGFX/generated/fonts/cache
../DigitalClock/CM7/TouchGFX/generated/texts/cache
then the app compiles, it flashes and runs in the target board just fine.
I guess that pressing the Program and run Target button should clean the Cache folders if the typography or text have been changed... Or the Code menu might need a Clear Cache Folders command... Or you know better solution than I...
Best regards,
Louis