Skip to content

Commit 9c8f144

Browse files
sethitow0xc0170
authored andcommitted
stm32f413xh: add crash capture support for GCC_ARM
1 parent 2d06357 commit 9c8f144

File tree

1 file changed

+14
-0
lines changed
  • targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/device/TOOLCHAIN_GCC_ARM

1 file changed

+14
-0
lines changed

targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/device/TOOLCHAIN_GCC_ARM/STM32F413xH.ld

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
STACK_SIZE = MBED_BOOT_STACK_SIZE;
1414

15+
M_CRASH_DATA_RAM_SIZE = 0x100;
16+
1517
/* Linker script to configure memory regions. */
1618
MEMORY
1719
{
@@ -91,6 +93,18 @@ SECTIONS
9193
__etext = .;
9294
_sidata = .;
9395

96+
.crash_data_ram :
97+
{
98+
. = ALIGN(8);
99+
__CRASH_DATA_RAM__ = .;
100+
__CRASH_DATA_RAM_START__ = .; /* Create a global symbol at data start */
101+
KEEP(*(.keep.crash_data_ram))
102+
*(.m_crash_data_ram) /* This is a user defined section */
103+
. += M_CRASH_DATA_RAM_SIZE;
104+
. = ALIGN(8);
105+
__CRASH_DATA_RAM_END__ = .; /* Define a global symbol at data end */
106+
} > RAM
107+
94108
.data : AT (__etext)
95109
{
96110
__data_start__ = .;

0 commit comments

Comments
 (0)