ENTRY(Reset_Handler); MEMORY { flash_hdr(rx) : ORIGIN = 0x60000000, LENGTH = 8k flash_irq(rx) : ORIGIN = 0x60002000, LENGTH = 1k flash_code(rx) : ORIGIN = 0x60002400, LENGTH = 8183k itcram(rx) : ORIGIN = 0x00000000, LENGTH = 128k dtcram(rw) : ORIGIN = 0x20000000, LENGTH = 128k ocram(rw) : ORIGIN = 0x20200000, LENGTH = 256k /* Is this cached ? */ } __StackTop = ORIGIN(dtcram) + LENGTH(dtcram); SECTIONS { .hdr : { FILL(0xff) ; KEEP(*(.cfg)) . = 0x1000 ; KEEP(*(.ivt)) . = 0x1020 ; KEEP(*(.dat)) . = 0x1030 ; KEEP(*(.dcd)) . = 0x2000 ;} >flash_hdr .irq : { KEEP(*(.isr_vector)) } > flash_irq .text : { *(.text* .text.*) *(.rodata*) ; } > flash_code .data : { __data_start__ = .; *(.data SORT(.data.*)) __data_end__ = .; } > dtcram AT > flash_code __etext = LOADADDR(.data); .bss : { __bss_start__ = .; *(.bss SORT(.bss.*) COMMON) __bss_end__ = .; } > dtcram _end = .; }