2026-02-18 2:07 AM
Hello,
I am testing a demo of my TSD TSS012004A-AD board.
It has 36KB internal RAm and 256KB internal FLASH.
My configuration on touchGFX like below:
And my linker result is like below:
As you can see there is still %55 empty on my internal FLASH and very little SPI_FLASH is used, I would like to use only internal memory. Why this 13388B is not used on FLASH, even I force to use internal flash section on touchGFX settings.
Thank you,
Solved! Go to Solution.
2026-02-18 4:06 AM - edited 2026-02-18 4:10 AM
Just edit this part of the linker file (STM32C091XX_FLASH.ld):
FontFlashSection :
{
*(FontFlashSection FontFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >SPI_FLASH
to:
FontFlashSection :
{
*(FontFlashSection FontFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >FLASH
Result:
2026-02-18 2:32 AM - edited 2026-02-18 2:33 AM
Hello @mcagriaksoy.
256 KB is not a large amount of flash memory for graphics applications. Therefore, the default configuration places all images and fonts in external flash memory.
However, changing either the default image configuration or the image-specific configuration in the image tab should work, and it works when I test it.
If you change the default image configuration, ensure that Default is selected for the assets you want to use this configuration for in the image tab. It should e.g. look like this:
If it still does not work, you can share your project. Then I will review it.
Best regards,
Johan
2026-02-18 2:43 AM - edited 2026-02-18 5:57 AM
Hello @JohanAstrup,
Thanks for the quick response, yes, I know 256KB is not a lot, but 128KB is still empty, so I would like to use that space instead.
On the tab of images, I have already checked all selected default, and even I select the "IntFlashSection" it is same.
I realized that that, the data on SPI_FLASH is the font. There is no option on touchGFX or somehow I cannot see that, I cannot force to put the font data on internal memory,
I think only data on external FLASH is the font, I`ve changed my font size to be sure, and realized the used memory is decreased..
So, what do you think, what should I follow next? I attached my project.
By the way, there is a demo project on touchgfx (Knob Lite), uses internal memory only even that demo has more images, allocated spaces than me..
Thank you,
2026-02-18 4:06 AM - edited 2026-02-18 4:10 AM
Just edit this part of the linker file (STM32C091XX_FLASH.ld):
FontFlashSection :
{
*(FontFlashSection FontFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >SPI_FLASH
to:
FontFlashSection :
{
*(FontFlashSection FontFlashSection.*)
*(.gnu.linkonce.r.*)
. = ALIGN(0x4);
} >FLASH
Result:
2026-02-19 1:46 AM - edited 2026-02-19 1:53 AM
Thanks for the fix, it resolved the issue, now there is no data on the SPI_FLASH as I requested, but this time, I cannot print any text on the display regardless of the font, size, type etc.
Do you know is there any root cause might cause font cannot be displayed?
Edit: Under the text configuration config window, the "Mapped storage format option" must be selected, so with this selection resolved my issue.
2026-02-19 1:51 AM
I don't know. But it could be something was cached incorrectly. Delete all TouchGFX generated files and generate them again.
Does it work in the simulator?
2026-02-19 1:51 AM
@mcagriaksoy wrote:Thanks for the fix, it resolved the issue, now there is no data on the SPI_FLASH as I requested,
Then please mark the solution on the post which provided the answer - not this one!
@mcagriaksoy wrote:but this time, I cannot print any text on the display regardless of the font, size, type etc.
Do you know is there any root cause might cause font cannot be displayed?
That's a new question - please start a new thread for that.
Provide a link here so that people can find it.