scat.scf

来自「Mouse for USB demo, based on STR710」· SCF 代码 · 共 43 行

SCF
43
字号
;;; Copyright ARM Ltd 1999. All rights reserved.
;
; This scatterloading descriptor file defines:
; one load region (FLASH) and 3 execution regions
; (FLASH, 32bitRAM & 16bitRAM)
;
; The entire program (code & data) is placed in FLASH which resides 
; at 0x0x000000, of length 0xx0000 bytes.  On reset, an aliased copy 
; of FLASH is re-mapped (by hardware) to address 0x0.  Program 
; execution starts at AREA Init in init.s, which is placed 
; '+First' in the image.  Following reset, the first few 
; instructions of init.s remap 32bitRAM to address 0x0.
; (The ARM Development (PID) Board remaps its Flash in this way)
;
; Most of the RO code will execute from FLASH (its execution 
; address (0x0x000000) is the same as its load address (0x0x000000), 
; so it does not need to be moved (a 'root region')
;
; 32bitRAM might be fast on-chip (internal) RAM, and is typically
; used for the stack and code that must be executed quickly.
; Here, the exception vectors (AREA Vect in vectors.s) and interrupt 
; handler (int_handler.c) get relocated (copied)  from FLASH to 32bitRAM 
; at address 0x0 for speed, so this area is placed '+First' in the region.
;
; 16bitRAM might be slower off-chip (external) DRAM, and is typically 
; used for less frequently accessed RW variables and ZI data.  
; The RW data will get relocated (copied) from FLASH to 16bitRAM at 0xx000

FLASH 0x40000000 0x10000 
{ 
  FLASH 0x40000000 
  { 
    71x_vect.o (Vect, +First) 
    71x_init.o (Init) 
    * (+RO) 
  } 
  RAM 0x20000000 
  { 
    * (+RW) 
    * (+ZI) 
  } 
}

⌨️ 快捷键说明

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