cancel
Showing results for 
Search instead for 
Did you mean: 

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

amb
Senior

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 ?

1 ACCEPTED SOLUTION

Accepted Solutions
mƎALLEm
ST Employee

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.

View solution in original post

3 REPLIES 3
Radosław
Senior III

NOLOAD  in linkerscript,  that is all You need.

mƎALLEm
ST Employee

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.

Thanks,it works.