Skip to content

Commit ee67718

Browse files
sethitow0xc0170
authored andcommitted
stm32f413xh: add crash capture support for IAR
1 parent cd068c8 commit ee67718

File tree

1 file changed

+9
-2
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/device/TOOLCHAIN_IAR

1 file changed

+9
-2
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/device/TOOLCHAIN_IAR/stm32f413xx.icf

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,21 @@ define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
99
/* [RAM = 320kb = 0x50000] Vector table dynamic copy: 118 vectors = 472 bytes (0x1D8) to be reserved in RAM */
1010
define symbol __NVIC_start__ = 0x20000000;
1111
define symbol __NVIC_end__ = 0x200001D7;
12-
define symbol __region_RAM_start__ = 0x200001D8; /* Aligned on 8 bytes */
12+
define symbol __region_CRASH_DATA_RAM_start__ = 0x200001D8;
13+
define symbol __region_CRASH_DATA_RAM_end__ = 0x200002D7;
14+
define symbol __region_RAM_start__ = 0x200002D8; /* Aligned on 8 bytes */
1315
define symbol __region_RAM_end__ = 0x2004FFFF;
1416

1517
/* Memory regions */
1618
define memory mem with size = 4G;
1719
define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__];
20+
define region CRASH_DATA_RAM_region = mem:[from __region_CRASH_DATA_RAM_start__ to __region_CRASH_DATA_RAM_end__];
1821
define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
1922

23+
/* Define Crash Data Symbols */
24+
define exported symbol __CRASH_DATA_RAM_START__ = __region_CRASH_DATA_RAM_start__;
25+
define exported symbol __CRASH_DATA_RAM_END__ = __region_CRASH_DATA_RAM_end__;
26+
2027
/* Stack and Heap */
2128
if (!isdefinedsymbol(MBED_BOOT_STACK_SIZE)) {
2229
define symbol MBED_BOOT_STACK_SIZE = 0x400;
@@ -33,4 +40,4 @@ do not initialize { section .noinit };
3340
place at address mem:__intvec_start__ { readonly section .intvec };
3441

3542
place in ROM_region { readonly };
36-
place in RAM_region { readwrite, block STACKHEAP };
43+
place in RAM_region { readwrite, block STACKHEAP };

0 commit comments

Comments
 (0)