diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/arm_atsam/packs/atmel/SAMD51_DFP/1.0.70/gcc/gcc/samd51j18a_flash.ld | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/arm_atsam/packs/atmel/SAMD51_DFP/1.0.70/gcc/gcc/samd51j18a_flash.ld b/lib/arm_atsam/packs/atmel/SAMD51_DFP/1.0.70/gcc/gcc/samd51j18a_flash.ld index 3d114f5b7..35db61971 100644 --- a/lib/arm_atsam/packs/atmel/SAMD51_DFP/1.0.70/gcc/gcc/samd51j18a_flash.ld +++ b/lib/arm_atsam/packs/atmel/SAMD51_DFP/1.0.70/gcc/gcc/samd51j18a_flash.ld | |||
| @@ -35,7 +35,7 @@ SEARCH_DIR(.) | |||
| 35 | /* Memory Spaces Definitions */ | 35 | /* Memory Spaces Definitions */ |
| 36 | MEMORY | 36 | MEMORY |
| 37 | { | 37 | { |
| 38 | //rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000 | 38 | /*rom (rx) : ORIGIN = 0x00000000, LENGTH = 0x00040000*/ |
| 39 | rom (rx) : ORIGIN = 0x00004000, LENGTH = 0x0003C000 | 39 | rom (rx) : ORIGIN = 0x00004000, LENGTH = 0x0003C000 |
| 40 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00020000 | 40 | ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00020000 |
| 41 | bkupram (rwx) : ORIGIN = 0x47000000, LENGTH = 0x00002000 | 41 | bkupram (rwx) : ORIGIN = 0x47000000, LENGTH = 0x00002000 |
| @@ -45,6 +45,9 @@ MEMORY | |||
| 45 | /* The stack size used by the application. NOTE: you need to adjust according to your application. */ | 45 | /* The stack size used by the application. NOTE: you need to adjust according to your application. */ |
| 46 | STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0x8000; | 46 | STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : DEFINED(__stack_size__) ? __stack_size__ : 0x8000; |
| 47 | 47 | ||
| 48 | /* The heap size used by the application. */ | ||
| 49 | HEAP_SIZE = DEFINED(HEAP_SIZE) ? HEAP_SIZE : DEFINED(__heap_size__) ? __heap_size__ : 0x800; | ||
| 50 | |||
| 48 | _srom = ORIGIN(rom); | 51 | _srom = ORIGIN(rom); |
| 49 | _lrom = LENGTH(rom); | 52 | _lrom = LENGTH(rom); |
| 50 | _erom = ORIGIN(rom) + LENGTH(rom); | 53 | _erom = ORIGIN(rom) + LENGTH(rom); |
| @@ -153,6 +156,17 @@ SECTIONS | |||
| 153 | _ezero = .; | 156 | _ezero = .; |
| 154 | } > ram | 157 | } > ram |
| 155 | 158 | ||
| 159 | /* .heap section for syscalls */ | ||
| 160 | .heap (NOLOAD) : | ||
| 161 | { | ||
| 162 | . = ALIGN(4); | ||
| 163 | _end = .; | ||
| 164 | end = .; | ||
| 165 | _heap_start = .; | ||
| 166 | . = . + HEAP_SIZE; | ||
| 167 | _heap_end = .; | ||
| 168 | } > ram | ||
| 169 | |||
| 156 | /* stack section */ | 170 | /* stack section */ |
| 157 | .stack (NOLOAD): | 171 | .stack (NOLOAD): |
| 158 | { | 172 | { |
