⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 standalone_dram.ld

📁 AT91RM9200-BasicTools-IAR4_30A-1_2
💻 LD
字号:
//*----------------------------------------------------------------------------
//*         ATMEL Microcontroller Software Support  -  ROUSSET  -
//*----------------------------------------------------------------------------
//* The software is delivered "AS IS" without warranty or condition of any
//* kind, either express, implied or statutory. This includes without
//* limitation any warranty or condition with respect to merchantability or
//* fitness for any particular purpose, or against the infringements of
//* intellectual property rights of others.
//*----------------------------------------------------------------------------
//* File Name           : standalone_Dram.ld
//* Object              : Section definition for Green Hills linker RAM execution
//*	Program layout for running extern DRAM.
//* Creation            : 24/Mar/04 JPP
//*----------------------------------------------------------------------------

MEMORY {
                        
    Sram_rsvd1   : ORIGIN = 0x00200000, LENGTH = 0
    Sram_memory  : ORIGIN = .,	 	LENGTH = 16K
    Sram_rsvd2   : ORIGIN = ., 	        LENGTH = 0

    dram_rsvd1   : ORIGIN = 0x20000000, LENGTH = 0
    dram_memory  : ORIGIN = .,	 	LENGTH = 16M
    dram_rsvd2   : ORIGIN = ., 	        LENGTH = 0

    flash_rsvd1  : ORIGIN = 0x00000000, LENGTH = 0
    flash_memory : ORIGIN = .,          LENGTH = 2M
    flash_rsvd2  : ORIGIN = .,          LENGTH = 0

}
CONSTANTS {

    heap_reserve = 1K
    stack_reserve = 1K
    InterruptStack_reserve = 1K

}

SECTIONS
{

//
// The text segment
//

    .reset                                              : > dram_memory 
    .picbase                                            : > .
    .text                                               : > .
    .syscall                                            : > .
    .intercall                                          : > .
    .interfunc                                          : > .
    .fixaddr                                            : > .
    .fixtype                                            : > .
    .rodata                                             : > .
    .secinfo                                            : > .
    .InterruptStack  ALIGN(16) PAD(InterruptStack_reserve) : > .

//
// The data segment
//

    .pidbase         ALIGN(16)                          : > . 
    .data                                               : > .
    .sdabase                                            : > .
    .sbss                                               : > .
    .sdata                                              : > .
    .bss                                                : > .
    .heap            ALIGN(16) PAD(heap_reserve)        : > .
    .stack           ALIGN(16) PAD(stack_reserve)       : > .
//
// These special symbols mark the bounds of RAM and ROM memory.
// They are used by the MULTI debugger.
//
    __ghs_romstart  = MEMADDR(flash_rsvd1);
    __ghs_romend    = MEMENDADDR(flash_rsvd2);
    __ghs_ramstart  = MEMADDR(dram_rsvd1);
    __ghs_ramend    = MEMENDADDR(dram_rsvd2);
        
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -