cancel
Showing results for 
Search instead for 
Did you mean: 

How can I force TouchGFX Designer to generate texts?

Jon Enz
Associate III

After adding many text fields, resources, and typographies to a screen, I went to compile and was met with errors that generated base classes were using text IDs that did not exist. The text ID's had been added to the source files for the containers they were used in, but not to the header file or TEXTS enum.

In an attempt to "clean" the project I deleted the contents of the TouchGFX/generated folder. The designer regenerates source files, but generated/texts/include/texts is empty. I have tried to add/remove resources in the designer so it would detect changes in the spreadsheet without any luck. With an empty folder my compile errors are now:

../TouchGFX/target/generated/TouchGFXConfiguration.cpp:17:10: fatal error: texts/TypedTextDatabase.hpp: No such file or directory
 #include <texts/TypedTextDatabase.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

How can I force the designer to regenerate these files?

12 REPLIES 12

I fixed this issue by creating a new blank project in the most recent update and then using the edit->import option to import the GUI from the working project on the older version. A bit of a pain, but I can now generate texts again.

OMG! This is not an option for me.

I have a huge project with 2 processors working together in a complex system and I simply don't have the time to transfer all needed references from the existing project to a new one. And also the folder structure would have to be adapted... Then I rather go back to Version 4.24.1 and stay with it forever now. I need to have a reliable base.

 

GS1
Senior III

Hi all,

now that version 4.26.0. is out, I retried the migration of my huge project to this new release, but still can not get texts being generated.

What I have done:

I used the latest STM32CubeMX version (6.15.0) and regenerated code with TouchGFX Version 4.26.0 selected. Then I opened TouchGFX Designer 4.26.0, migrated my project and generated code too.

There were several warnings concerning the Unicode characters as previously mentioned by someone:

WARNING - Char 0xC0 is used but does not exist in the font!
WARNING - A total of 64 Unicode characters did not exist in the font!

Then I tried several proposals:

- Change all wildcard character sets to 0x20...0x7E instead of 0x20 ... 0xFF. Did not help!

- Generate a blank (Simulator) app and import the GUI: Text generation then works! But I need the design im my project folder.

- I then tried to import this GUI into my original project: But text generation doesn't work then!

- I tried to generate a new (simulator) design in my current project folder and import from the working inported project: Text generation still doesn't work.


I am out of ideas, how to fix this issue!

Can anyone tell, what is wrong and how I can fix this?

 

Thanks for help.

BR GS