Skip to content

Commit cd068c8

Browse files
sethitow0xc0170
authored andcommitted
stm32f413xh: add crash capture support for ARM_MICRO
1 parent 9c8f144 commit cd068c8

File tree

1 file changed

+11
-2
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/device/TOOLCHAIN_ARM_MICRO

1 file changed

+11
-2
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/device/TOOLCHAIN_ARM_MICRO/stm32f413xh.sct

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@
5454
; Total: 118 vectors = 472 bytes (0x1D8) to be reserved in RAM
5555
#define VECTOR_SIZE 0x1D8
5656

57-
#define RAM_FIXED_SIZE (MBED_BOOT_STACK_SIZE+VECTOR_SIZE)
57+
#define MBED_CRASH_REPORT_RAM_SIZE 0x100
58+
59+
#define MBED_IRAM1_START (MBED_RAM_START + VECTOR_SIZE + MBED_CRASH_REPORT_RAM_SIZE)
60+
#define MBED_IRAM1_SIZE (MBED_RAM_SIZE - VECTOR_SIZE - MBED_CRASH_REPORT_RAM_SIZE)
61+
62+
#define RAM_FIXED_SIZE (MBED_BOOT_STACK_SIZE+VECTOR_SIZE+MBED_CRASH_REPORT_RAM_SIZE)
5863

5964
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
6065

@@ -64,7 +69,11 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
6469
.ANY (+RO)
6570
}
6671

67-
RW_IRAM1 (MBED_RAM_START+VECTOR_SIZE) (MBED_RAM_SIZE-VECTOR_SIZE) { ; RW data
72+
RW_m_crash_data (MBED_RAM_START+VECTOR_SIZE) EMPTY MBED_CRASH_REPORT_RAM_SIZE { ; RW data
73+
}
74+
75+
76+
RW_IRAM1 MBED_IRAM1_START MBED_IRAM1_SIZE { ; RW data
6877
.ANY (+RW +ZI)
6978
}
7079

0 commit comments

Comments
 (0)