DISCO_L476VG : align memory mapping with ARM

pull/3062/head
Michel Jaouen 2016-10-05 16:44:10 +02:00
parent c2032c0442
commit 9c4e7173a5
2 changed files with 5 additions and 5 deletions

View File

@ -140,7 +140,7 @@ SECTIONS
.stack_dummy (COPY):
{
*(.stack*)
} > SRAM2
} > SRAM1
/* Set stack top to end of RAM, and stack limit move down by
* size of stack_dummy section */

View File

@ -19,8 +19,8 @@ define region SRAM2_region = mem:[from __region_SRAM2_start__ to __region_SRAM2_
define region SRAM1_region = mem:[from __region_SRAM1_start__ to __region_SRAM1_end__];
/* Stack 1/8 and Heap 1/4 of RAM */
define symbol __size_cstack__ = 0x4000;
define symbol __size_heap__ = 0x8000;
define symbol __size_cstack__ = 0x8000;
define symbol __size_heap__ = 0xa000;
define block CSTACK with alignment = 8, size = __size_cstack__ { };
define block HEAP with alignment = 8, size = __size_heap__ { };
define block STACKHEAP with fixed order { block HEAP, block CSTACK };
@ -31,5 +31,5 @@ do not initialize { section .noinit };
place at address mem:__intvec_start__ { readonly section .intvec };
place in ROM_region { readonly };
place in SRAM2_region { readwrite };
place in SRAM1_region { block STACKHEAP };
place in SRAM1_region { readwrite, block STACKHEAP };
place in SRAM2_region { };