@@ -10,7 +10,9 @@ define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
10
10
/* Vector table dynamic copy: Total: 98 vectors * 4 = 392 bytes (0x188) to be reserved in RAM */
11
11
define symbol __NVIC_start__ = 0x10000000;
12
12
define symbol __NVIC_end__ = 0x10000187;
13
- define symbol __region_SRAM2_start__ = 0x10000188;
13
+ define symbol __region_CSTACK_start__ = 0x10000188;
14
+ define symbol __region_CSTACK_end__ = __region_CSTACK_start__ + MBED_BOOT_STACK_SIZE;
15
+ define symbol __region_SRAM2_start__ = __region_CSTACK_end__;
14
16
define symbol __region_SRAM2_end__ = 0x10007FFF;
15
17
define symbol __region_CRASH_DATA_RAM_start__ = 0x20000000;
16
18
define symbol __region_CRASH_DATA_RAM_end__ = 0x200000FF;
@@ -20,9 +22,10 @@ define symbol __region_SRAM1_end__ = 0x20017FFF;
20
22
/* Memory regions */
21
23
define memory mem with size = 4G;
22
24
define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__];
23
- define region SRAM2_region = mem:[from __region_SRAM2_start__ to __region_SRAM2_end__ ];
25
+ define region CSTACK_region = mem:[from __region_CSTACK_start__ to __region_CSTACK_end__ ];
24
26
define region CRASH_DATA_RAM_region = mem:[from __region_CRASH_DATA_RAM_start__ to __region_CRASH_DATA_RAM_end__];
25
- define region SRAM1_region = mem:[from __region_SRAM1_start__ to __region_SRAM1_end__];
27
+ define region RAM_region = mem:[from __region_SRAM2_start__ to __region_SRAM2_end__]
28
+ | mem:[from __region_SRAM1_start__ to __region_SRAM1_end__];
26
29
27
30
/* Define Crash Data Symbols */
28
31
define exported symbol __CRASH_DATA_RAM_START__ = __region_CRASH_DATA_RAM_start__;
@@ -33,15 +36,15 @@ if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
33
36
}
34
37
35
38
define symbol __size_cstack__ = MBED_BOOT_STACK_SIZE;
36
- define symbol __size_heap__ = 0x17000 ;
39
+ define symbol __size_heap__ = 0x10000 ;
37
40
define block CSTACK with alignment = 8, size = __size_cstack__ { };
38
- define block HEAP with alignment = 8, size = __size_heap__ { };
41
+ define block HEAP with expanding size, alignment = 8, minimum size = __size_heap__ { };
39
42
40
43
initialize by copy with packing = zeros { readwrite };
41
44
do not initialize { section .noinit };
42
45
43
46
place at address mem:__intvec_start__ { readonly section .intvec };
44
47
45
48
place in ROM_region { readonly };
46
- place in SRAM1_region { readwrite, block HEAP };
47
- place in SRAM2_region { first block CSTACK , zeroinit };
49
+ place in CSTACK_region { block CSTACK };
50
+ place in RAM_region { block HEAP, readwrite , zeroinit };
0 commit comments