Skip to main content
Associate II
June 10, 2026
Solved

TouchGFX External Loader Write to False Address & Text Disappear

  • June 10, 2026
  • 1 reply
  • 37 views

I have 2 problem in my touchgfx project.

I use STM32G4 series. I have an external loader with a starting address of 0xA0000000. I can perform read and write operations with this loader using CubeProgrammer. However, when I define the external loader via CubeIDE, it programs the address 0x080000000. Then I get Hard Fault. 

 

 

Here is my flash.ld

 

The external loader starts working when I start it with the external loader address 0x00000000, but I want to start with 0xA0000000. How can i fix it ?

Also my second problem is texts. My text datas are sending to external flash, but it is not appear. Then I changed font section to internal flash in flash.ld, my text was appear.

 

Here is my changed sections side.

 

 

The textures are changing because something else is changing. Why isn't the screen showing the text I added with the external loader?

Best answer by Osman SOYKURT

Hello ​@atilkicioglu ,

For your first issue, I believe the STM32CubeIDE is probably not using the correct external loader.
Could you check you have the correct loader by going to your project properties->Run/Debug Settings->Debugger → External Loaders
 


 

For your second question, I’d recommend you to change in your linker file the part for FontFlashSection to be placed in SPI_FLASH instead of FLASH .

FontFlashSection :
{
*(FontFlashSection FontFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >SPI_FLASH


Also don’t forget to select Unmapped storage format in your Text Configuration in TouchGFX Designer.
 

 

1 reply

Osman SOYKURT
Osman SOYKURTBest answer
ST Technical Moderator
June 10, 2026

Hello ​@atilkicioglu ,

For your first issue, I believe the STM32CubeIDE is probably not using the correct external loader.
Could you check you have the correct loader by going to your project properties->Run/Debug Settings->Debugger → External Loaders
 


 

For your second question, I’d recommend you to change in your linker file the part for FontFlashSection to be placed in SPI_FLASH instead of FLASH .

FontFlashSection :
{
*(FontFlashSection FontFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >SPI_FLASH


Also don’t forget to select Unmapped storage format in your Text Configuration in TouchGFX Designer.
 

 

ST Software Developer | TouchGFX
Associate II
June 10, 2026

Mr. Osman thanks for reply.

The solution is unmapped storage format. Before your reply, i found in this link;
Using Non-Memory Mapped Flash for Font Data | TouchGFX Documentation

I implemented unmapped storage format to appear texts. It works !

I change the starter address for my project. I done it too.

Thanks again.

Osman SOYKURT
ST Technical Moderator
June 10, 2026

You’re welcome!

ST Software Developer | TouchGFX