cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX 4.22.1 TextKeysAndLanguages.hpp and others are missing

Jnevi.1
Senior

Hi,

i'm using cubemx and updated from touchgfx 4.21.2 to 4.22.1 and also installed the newest touchgfx designer.

After regeneration of the project certain files like TextKeysAndLanguages.hpp are missing. So all my texts are missing.
i can see it in my git that these files were deleted

Jnevi1_0-1698304992151.png

Also <fonts/ApplicationFontProvider.hpp> is missing and generates build errors

In TouchGFX designer i see all my texts and this is my text config (which i did not change after updating from the last version)

Jnevi1_1-1698305434942.png

Any idea what might be the error?

Regards

6 REPLIES 6

Hello @Jnevi.1 ,

All the text and different typographies are stored in a xml file under "assets -> texts" in TouchGFX project directory. The files that are deleted can be recreated by just regenerating your project from the TouchGFX Designer not the CubeMX. Updating the version of TouchGFX should not alter your assets and gui folders.

I hope this helps you, don't hesitate to ask more questions.

Mohammad MORADI
ST Software Developer | TouchGFX

Hi,

sorry for not making this clear: the error happens after regenerating with touchgfx 4.22.1

i update my cubemx...regeneration is fine.
i update touchgfx via cubeMX which gives me some errors(don't know if it is important)

Jnevi1_0-1698757056490.png

i open my touchgfx project in designer 4.22.1 and regenrate *booom* files are deleted and not regenerated

Okay, it sounds pretty weird that CubeMX faces some problems.

Is it possible to try installing the new version (TouchGFX 4.22.1) manually from CubeMX -> Help -> Manage Embedded Software Packages, then under the STMicroelectronics tab, X-CUBE-TOUCHGFX section ?
After installing, open your project, then go to Software Packs -> Select Components and make sure the version 4.22.1 is selected.
And of course make sure you have a backup before applying these changes.

Good luck

Mohammad MORADI
ST Software Developer | TouchGFX
Jnevi.1
Senior

Jnevi1_0-1698765834391.png

ok, the version was selected. But i did not notice the settings for touchgfx   itself (resolution, pixel mode etc) were not set. After setting these again the files are generated.

But now i face this problem
https://community.st.com/t5/stm32-mcus-touch-gfx-and-gui/linker-error-after-upgrading-to-touchgfx-4-21-4/td-p/54197

 

compiling TouchGFXGeneratedHAL.cpp...
linking...
flamcento\flamcento.axf: Error: L6216E: Cannot use base/limit symbols for non-contiguous section .ARM.exidx
flamcento\flamcento.axf: Error: L6216E: Cannot use base/limit symbols for non-contiguous section .ARM.exidx
Finished: 0 information, 0 warning and 2 error messages.

I tried to replicate the process of updating a project from old version of TouchGFX to 4.22.1, and I didn't face any issues.
Can you send us your project, or at least a part of it that fails to see why issue is happening? 
If it's not, please mention the version of the CubeMX you're using, the board or MCU, and the compiler.

Thanks

Mohammad MORADI
ST Software Developer | TouchGFX
Jnevi.1
Senior

will send you an PM