scat_a.scf

来自「arm7的源代码」· SCF 代码 · 共 46 行

SCF
46
字号
;;; Copyright ARM Ltd 2002. All rights reserved.

;; Semihosting scatter file
;; Stack and Heap are located in the D-TCM
;; D-TCM is located by scatter file



ROM_LOAD 0x20000
{
    ROM_EXEC 0x20000
    {
        initTCM.o (Init946TCM, +FIRST)   ; Core initialisation inc TCM enable
        initMPU.o (InitMPU)
        __main.o                         ; C Library entry point, must be in a root region
        *  (Region$$Table)               ; this section must be in a root region 
        *  (ZISection$$Table)            ; this section must be in a root region
        retarget.o (+RO)
    }

    I-TCM 0x100 0x7F00                   ; built at 0x100 to avoid vector space
    {                                    ; assumes 32K I-TCM     
        dhry_1.o (+RO)
        dhry_2.o (+RO)
        * (+RO)                          ; any remaining code inc C lib.
    }

    D-TCM 0x10000
    {
        dtcm.o (DTCM, +FIRST)            ; place the data tcm at this address
        * (+RW,+ZI)                      ; places all image RW and ZI data at this address
    }

    HEAP +0 UNINIT
    {
        heap.o (+ZI)                     ; heap follows directly from image data 
    }

    STACKS 0x18000 UNINIT                ; assume 32KB data D-TCM
    {
        stack.o (+ZI)
    }

}

⌨️ 快捷键说明

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