Skip to main content
Associate III
March 16, 2026
Solved

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

  • March 16, 2026
  • 2 replies
  • 258 views

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 ?

Best answer by mƎALLEm

As stated by  @Radosław , using NOLOAD.

Example:

 TextFlashSection (NOLOAD):
	{
		*(TextFlashSection TextFlashSection.*)
		*(.gnu.linkonce.r.*)
 . = ALIGN(0x4);
	} >Flash

2 replies

Radosław
Associate II
March 16, 2026

NOLOAD  in linkerscript,  that is all You need.

mƎALLEm
mƎALLEmBest answer
Technical Moderator
March 16, 2026

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 on ""Accept as Solution"" on the reply which solved your issue or answered your question."
ambAuthor
Associate III
March 16, 2026

Thanks,it works.