2026-01-06 3:48 AM
Hello everyone,
I'm experiencing an issue with TouchGFX 4.25.0 on a custom STM32H7-based board that we develop and sell as an OEM product, and I'm hoping someone can help me understand what might be causing it.
When fonts and texts are configured to be stored in the external NOR Flash memory, we observe undesirable visual glitches and artifacts, particularly affecting text rendering. However, when the same fonts and texts are kept in the internal Flash, everything renders correctly without any issues.
To avoid the problem, I've modified the linker script to force FontFlashSection and TextFlashSection into internal Flash, while only ExtFlashSection (for images/assets) goes to external NOR Flash:
/* TOUCHGFX Begin *********************************/
FontFlashSection :
{
*(FontFlashSection FontFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >FLASH
TextFlashSection :
{
*(TextFlashSection TextFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >FLASH
ExtFlashSection :
{
*(ExtFlashSection ExtFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >NOR_FLASH
/* TOUCHGFX End ***********************************/While this workaround is functional, fonts and texts can consume a significant amount of internal Flash memory, which becomes problematic in projects with limited internal Flash availability or when we need that space for application code.
I'd really appreciate any insights or suggestions. If there's any additional information I can share to help investigate this issue (memory configuration, screenshots of the glitches, HAL/clock settings, etc.), please let me know and I'll be happy to provide it.
Thank you in advance for your help!
2026-01-11 4:41 AM
@mƎALLEm sorry about the delay.
Unfortunately, the MPU background region change did not fix the issue.
This problem is quite difficult to reproduce , it occurs randomly and intermittently. Yesterday I was finally able to capture it again, so I'm attaching 3 videos that demonstrate the behavior.
Observations:
This strongly suggests the issue is related to how data is being read from the external NOR Flash, but I'm unsure what else could be causing it given that the MPU is now properly configured.
Is there anything else I should investigate?
Thank you.
2026-01-21 6:39 AM
Hello @uilter ,
Maybe it's not related but what is the font that you're using? Is it bitmap font that you're using or vector? also, which bpp for your typography?
2026-01-21 5:38 PM - edited 2026-01-21 5:39 PM
Hi @Osman SOYKURT , thanks for your message!
For this particular project we have 12 different typographies, bitmap and all use Bpp = 4.
All texts we use an specifique font called Inter.