Skip to main content
Associate III
Mar 16, 2026 1:15 PM UTC
Solved

How to skip download part of .elf file to internal flash?

I use touchgfx on u599 ,internal flash is 4MB.

My project have 2.4M fonts and images,so I devide internal flash to two parts,like this:

RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 2496K

SRAM4 (xrw) : ORIGIN = 0x28000000, LENGTH = 16K

FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K

ASSETSFLASH (rx) : ORIGIN = 0x08100000, LENGTH = 3096K

 

because the assets are not changed everytime ,So I am thinking stop CUBEIDE to download

ASSETSFLASH and only download FLASH form 0x08000000.

 

How can I do this ?

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Mar 16, 2026 1:36 PM UTC

As stated by  @Radosław , using NOLOAD.

Example:

 TextFlashSection (NOLOAD):
	{
		*(TextFlashSection TextFlashSection.*)
		*(.gnu.linkonce.r.*)
 . = ALIGN(0x4);
	} >Flash
To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.

3 replies

Radosław
Associate II
Mar 16, 2026 1:17 PM UTC

NOLOAD  in linkerscript,  that is all You need.

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Mar 16, 2026 1:36 PM UTC

As stated by  @Radosław , using NOLOAD.

Example:

 TextFlashSection (NOLOAD):
	{
		*(TextFlashSection TextFlashSection.*)
		*(.gnu.linkonce.r.*)
 . = ALIGN(0x4);
	} >Flash
To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
ambAuthor
Associate III
Mar 16, 2026 2:02 PM UTC

Thanks,it works.