Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Hpw do I change the startup adr of an app

Hi

I tried writing about this before. Hope someone can help me.

I have a simple program. I want to change the startup adr of my program from 0x1000000(SDRAM base adr) to for an exsample 0x1100000. I have tried to define my own custom linker script in the system library.

Here below I have copied in the changes I made to the default linker script

-----------------------------------------------------------------------------------------------------

MEMORY

{

reset : ORIGIN = 0x00000000, LENGTH = 32

ext_flash : ORIGIN = 0x00000020, LENGTH = 8388576

ext_ram : ORIGIN = 0x00800000, LENGTH = 1048576

epcs_controller : ORIGIN = 0x00900000, LENGTH = 2048

sdram_UNUSED : ORIGIN = 0x01100000, LENGTH = 32

sdram : ORIGIN = 0x01100020, LENGTH = 15728640

}

/* Define symbols for each memory base-address */

__alt_mem_ext_flash = 0x00000000 ;

__alt_mem_ext_ram = 0x00800000 ;

__alt_mem_epcs_controller = 0x00900000 ;

__alt_mem_sdram = 0x01100000 ;

-----------------------------------------------------------------------------------------------------

But when I use this script nothing really happens when I starte up the program.

What am I missing???

Can this be done with this script or must it be done with the ELF tools???? If yes how with the ELF tools????

Hope someone can help me since the documentation for this is none existing

Best regards

GreateWhite.DK

13 Replies