@@ -9,11 +9,12 @@ define symbol __ICFEDIT_intvec_start__ = MBED_APP_START;
9
9
/*-Memory Regions-*/
10
10
define symbol __ICFEDIT_region_ROM_start__ = MBED_APP_START;
11
11
define symbol __ICFEDIT_region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
12
- define symbol __ICFEDIT_region_IRAM_start__ = 0x20000000;
12
+ define symbol __region_CRASH_DATA_RAM_start__ = 0x20000000;
13
+ define symbol __region_CRASH_DATA_RAM_end__ = 0x200000FF;
14
+ define symbol __ICFEDIT_region_IRAM_start__ = 0x20000100;
13
15
define symbol __ICFEDIT_region_IRAM_end__ = 0x20028000 - 1;
14
16
/*-Sizes-*/
15
17
define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
16
- define symbol __ICFEDIT_size_crash_data__ = 0x100;
17
18
define symbol __ICFEDIT_size_intvec__ = (4 * (16 + 96));
18
19
define symbol __ICFEDIT_size_heap__ = 0x10000;
19
20
/**** End of ICF editor section. ###ICF###*/
@@ -22,16 +23,16 @@ define symbol __ICFEDIT_size_heap__ = 0x10000;
22
23
define memory mem with size = 4G;
23
24
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
24
25
define region IRAM_region = mem:[from __ICFEDIT_region_IRAM_start__ to __ICFEDIT_region_IRAM_end__];
26
+ define region CRASH_DATA_RAM_region = mem:[from __region_CRASH_DATA_RAM_start__ to __region_CRASH_DATA_RAM_end__];
25
27
26
28
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
27
29
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
28
30
/* NOTE: Vector table base requires to be aligned to the power of vector table size. Give a safe value here. */
29
31
define block IRAMVEC with alignment = 1024, size = __ICFEDIT_size_intvec__ { };
30
- define block CRASH_DATA_RAM with alignment = 8, size = __ICFEDIT_size_crash_data__ { };
31
32
32
33
/* Define Crash Data Symbols */
33
- define exported symbol __CRASH_DATA_RAM_START__ = __ICFEDIT_region_IRAM_start__ + __ICFEDIT_size_cstack__ + __ICFEDIT_size_intvec__ ;
34
- define exported symbol __CRASH_DATA_RAM_END__ = __ICFEDIT_region_IRAM_start__ + __ICFEDIT_size_cstack__ + __ICFEDIT_size_intvec__ + __ICFEDIT_size_crash_data__ ;
34
+ define exported symbol __CRASH_DATA_RAM_START__ = __region_CRASH_DATA_RAM_start__ ;
35
+ define exported symbol __CRASH_DATA_RAM_END__ = __region_CRASH_DATA_RAM_end__ ;
35
36
36
37
initialize by copy { readwrite };
37
38
do not initialize { section .noinit };
@@ -41,6 +42,5 @@ place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
41
42
place in ROM_region { readonly };
42
43
place at start of IRAM_region { block CSTACK };
43
44
place in IRAM_region { block IRAMVEC };
44
- place in IRAM_region { block CRASH_DATA_RAM };
45
45
place in IRAM_region { readwrite };
46
46
place in IRAM_region { block HEAP };
0 commit comments