mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Reorganization of memory layout
This commit is contained in:
@ -40,8 +40,7 @@ MEMORY
|
|||||||
ram (rwx) : ORIGIN = 0x20070000, LENGTH = 0x00018000 /* sram, 96K */
|
ram (rwx) : ORIGIN = 0x20070000, LENGTH = 0x00018000 /* sram, 96K */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The stack size used by the application. NOTE: you need to adjust */
|
RAM_END = 0x20088000 ; /* There is a way to define this as ram.ORIGIN + ram.LENGTH ? */
|
||||||
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x2000 ;
|
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
@ -129,16 +128,13 @@ SECTIONS
|
|||||||
_ezero = .;
|
_ezero = .;
|
||||||
} > ram
|
} > ram
|
||||||
|
|
||||||
/* stack section */
|
|
||||||
.stack (NOLOAD):
|
|
||||||
{
|
|
||||||
. = ALIGN(8);
|
|
||||||
_sstack = .;
|
|
||||||
. = . + STACK_SIZE;
|
|
||||||
. = ALIGN(8);
|
|
||||||
_estack = .;
|
|
||||||
} > ram
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_end = . ;
|
_end = . ;
|
||||||
|
|
||||||
|
/* put stack section at the bottom of ram space */
|
||||||
|
.stack RAM_END (NOLOAD):
|
||||||
|
{
|
||||||
|
_sstack = .;
|
||||||
|
_estack = .;
|
||||||
|
} > ram
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user