stm32f413xh: add crash capture support for GCC_ARM

pull/11139/head
Seth Itow 2019-07-31 15:53:34 -07:00
parent 417a9fe2fb
commit 489bd3dec8
1 changed files with 14 additions and 0 deletions

View File

@ -12,6 +12,8 @@
STACK_SIZE = MBED_BOOT_STACK_SIZE; STACK_SIZE = MBED_BOOT_STACK_SIZE;
M_CRASH_DATA_RAM_SIZE = 0x100;
/* Linker script to configure memory regions. */ /* Linker script to configure memory regions. */
MEMORY MEMORY
{ {
@ -91,6 +93,18 @@ SECTIONS
__etext = .; __etext = .;
_sidata = .; _sidata = .;
.crash_data_ram :
{
. = ALIGN(8);
__CRASH_DATA_RAM__ = .;
__CRASH_DATA_RAM_START__ = .; /* Create a global symbol at data start */
KEEP(*(.keep.crash_data_ram))
*(.m_crash_data_ram) /* This is a user defined section */
. += M_CRASH_DATA_RAM_SIZE;
. = ALIGN(8);
__CRASH_DATA_RAM_END__ = .; /* Define a global symbol at data end */
} > RAM
.data : AT (__etext) .data : AT (__etext)
{ {
__data_start__ = .; __data_start__ = .;