2023-10-05 01:59:04 +08:00
|
|
|
ENTRY(Reset_Handler);
|
|
|
|
MEMORY {
|
|
|
|
itcram(rx) : ORIGIN = 0x00000000, LENGTH = 64k
|
|
|
|
dtcram(rw) : ORIGIN = 0x20000000, LENGTH = 64k
|
2023-10-08 00:58:20 +08:00
|
|
|
ocram(rw) : ORIGIN = 0x20200000, LENGTH = 128k /* This is cached */
|
2023-10-05 01:59:04 +08:00
|
|
|
}
|
|
|
|
__StackTop = ORIGIN(dtcram) + LENGTH(dtcram);
|
|
|
|
|
|
|
|
SECTIONS {
|
|
|
|
.irq : { KEEP(*(.isr_vector)) } > itcram
|
|
|
|
.text : { *(.text* .text.*) *(.rodata*) ; } > itcram
|
|
|
|
.data : { __data_start__ = .; *(.data SORT(.data.*)) __data_end__ = .; } > dtcram AT > itcram
|
|
|
|
__etext = LOADADDR(.data);
|
|
|
|
.bss : { __bss_start__ = .; *(.bss SORT(.bss.*) COMMON) __bss_end__ = .; } > dtcram
|
|
|
|
_end = .;
|
|
|
|
}
|