build6_scat.scf

来自「ADS1.2 samples」· SCF 代码 · 共 62 行

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

;; Embedded scatter file
;; Stack and Heap are located in the D-TCM


ROM_LOAD 0x24000000 0x04000000
{
    ROM_EXEC 0x24000000 0x04000000
    {
        init.o (Init, +FIRST)
	initTCM.o			 ; Initialise TCMs
        initMMU.o                        ; Create Translation Table
        __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
    }

    I-TCM 0x0000 0x8000                  
    {                                    ; assumes 32K I-TCM
        vectors.o (Vect, +FIRST)
        * (+RO)                          ; any remaining code inc C lib.
    }

    D-TCM 0x10000 
    {
        * (+RW,+ZI)
    }

    HEAP +0 UNINIT
    {
        stackheap_b6.o (heap)
    }
    
    STACK 0x18000 UNINIT                 ; assume 32KB data D-TCM
    {
        stackheap_b6.o (stack)
    }
    
    TTB 0x28000 UNINIT                    ; place translation table at 0x28000
    {
        TTB.o (+ZI)
    }
    

    Timer1 0x13000100 UNINIT
    {
	timer.o (+ZI)
    }

    IRQ0 0x14000000 UNINIT
    {
	irq.o (+ZI)
    }
    
    UART0 0x16000000 UNINIT
    {
        uart.o (+ZI)
    }
}

⌨️ 快捷键说明

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