[Horus] Heap now moved to the SDRAM. Around 7.5MB available, without any speed issue :)

This commit is contained in:
Bertrand Songis
2016-02-21 09:21:17 +01:00
parent fdca5a11b0
commit 71e54b3072
+11 -14
View File
@@ -21,7 +21,7 @@ ENTRY(Reset_Handler)
/* Highest address of the user mode stack */ /* Highest address of the user mode stack */
_estack = 0x10010000; /* end of 64K CCM */ _estack = 0x10010000; /* end of 64K CCM */
_heap_end = 0x20030000; /* end of 192K SRAM */ _heap_end = 0xD0800000; /* end of 8192K SDRAM */
/* Generate a link error if heap and stack don't fit into RAM */ /* Generate a link error if heap and stack don't fit into RAM */
_Min_Heap_Size = 0; /* required amount of heap */ _Min_Heap_Size = 0; /* required amount of heap */
@@ -68,13 +68,13 @@ SECTIONS
_etext = .; /* define a global symbols at end of code */ _etext = .; /* define a global symbols at end of code */
} >FLASH } >FLASH
.ARM.extab :
.ARM.extab : { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH { *(.ARM.extab* .gnu.linkonce.armextab.*) } >FLASH
.ARM : { .ARM : {
__exidx_start = .; __exidx_start = .;
*(.ARM.exidx*) *(.ARM.exidx*)
__exidx_end = .; __exidx_end = .;
} >FLASH } >FLASH
.preinit_array : .preinit_array :
{ {
@@ -82,6 +82,7 @@ SECTIONS
KEEP (*(.preinit_array*)) KEEP (*(.preinit_array*))
PROVIDE_HIDDEN (__preinit_array_end = .); PROVIDE_HIDDEN (__preinit_array_end = .);
} >FLASH } >FLASH
.init_array : .init_array :
{ {
PROVIDE_HIDDEN (__init_array_start = .); PROVIDE_HIDDEN (__init_array_start = .);
@@ -89,6 +90,7 @@ SECTIONS
KEEP (*(.init_array*)) KEEP (*(.init_array*))
PROVIDE_HIDDEN (__init_array_end = .); PROVIDE_HIDDEN (__init_array_end = .);
} >FLASH } >FLASH
.fini_array : .fini_array :
{ {
PROVIDE_HIDDEN (__fini_array_start = .); PROVIDE_HIDDEN (__fini_array_start = .);
@@ -107,7 +109,6 @@ SECTIONS
_sdata = .; /* create a global symbol at data start */ _sdata = .; /* create a global symbol at data start */
*(.data) /* .data sections */ *(.data) /* .data sections */
*(.data*) /* .data* sections */ *(.data*) /* .data* sections */
. = ALIGN(4); . = ALIGN(4);
_edata = .; /* define a global symbol at data end */ _edata = .; /* define a global symbol at data end */
} >CCM } >CCM
@@ -122,10 +123,8 @@ SECTIONS
*(.bss) *(.bss)
*(.bss*) *(.bss*)
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(4);
_ebss = .; /* define a global symbol at bss end */ _ebss = .; /* define a global symbol at bss end */
/* __bss_end__ = _ebss; */
} >CCM } >CCM
/* collect all uninitialized .ccm sections */ /* collect all uninitialized .ccm sections */
@@ -133,16 +132,9 @@ SECTIONS
{ {
. = ALIGN(4); . = ALIGN(4);
_sram = .; _sram = .;
/* __ccm_start__ = _sccm; */
*(.ram) *(.ram)
. = ALIGN(4);
_eram = .;
/* __ccm_end__ = _eccm; */
} >RAM } >RAM
PROVIDE ( end = _eram );
PROVIDE ( _end = _eram );
/* User_heap_stack section, used to check that there is enough RAM left */ /* User_heap_stack section, used to check that there is enough RAM left */
._user_heap_stack : ._user_heap_stack :
{ {
@@ -168,7 +160,12 @@ SECTIONS
*(.sdram*) *(.sdram*)
*(.sdram_rodata) *(.sdram_rodata)
*(.sdram_rodata*) *(.sdram_rodata*)
. = ALIGN(4);
_eram = .;
} >SDRAM } >SDRAM
PROVIDE ( end = _eram );
PROVIDE ( _end = _eram );
/* Remove information from the standard libraries */ /* Remove information from the standard libraries */
/DISCARD/ : /DISCARD/ :