Skip to content

Commit 197b85e

Browse files
committed
create a region instead of a block for crash data
1 parent 801e555 commit 197b85e

File tree

1 file changed

+6
-6
lines changed
  • targets/TARGET_NUVOTON/TARGET_M480/device/TOOLCHAIN_IAR

1 file changed

+6
-6
lines changed

targets/TARGET_NUVOTON/TARGET_M480/device/TOOLCHAIN_IAR/M487.icf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ define symbol __ICFEDIT_intvec_start__ = MBED_APP_START;
99
/*-Memory Regions-*/
1010
define symbol __ICFEDIT_region_ROM_start__ = MBED_APP_START;
1111
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;
1315
define symbol __ICFEDIT_region_IRAM_end__ = 0x20028000 - 1;
1416
/*-Sizes-*/
1517
define symbol __ICFEDIT_size_cstack__ = MBED_BOOT_STACK_SIZE;
16-
define symbol __ICFEDIT_size_crash_data__ = 0x100;
1718
define symbol __ICFEDIT_size_intvec__ = (4 * (16 + 96));
1819
define symbol __ICFEDIT_size_heap__ = 0x10000;
1920
/**** End of ICF editor section. ###ICF###*/
@@ -22,16 +23,16 @@ define symbol __ICFEDIT_size_heap__ = 0x10000;
2223
define memory mem with size = 4G;
2324
define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
2425
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__];
2527

2628
define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
2729
define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
2830
/* NOTE: Vector table base requires to be aligned to the power of vector table size. Give a safe value here. */
2931
define block IRAMVEC with alignment = 1024, size = __ICFEDIT_size_intvec__ { };
30-
define block CRASH_DATA_RAM with alignment = 8, size = __ICFEDIT_size_crash_data__ { };
3132

3233
/* 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__;
3536

3637
initialize by copy { readwrite };
3738
do not initialize { section .noinit };
@@ -41,6 +42,5 @@ place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
4142
place in ROM_region { readonly };
4243
place at start of IRAM_region { block CSTACK };
4344
place in IRAM_region { block IRAMVEC };
44-
place in IRAM_region { block CRASH_DATA_RAM };
4545
place in IRAM_region { readwrite };
4646
place in IRAM_region { block HEAP };

0 commit comments

Comments
 (0)