mirror of https://github.com/ARMmbed/mbed-os.git
stm32f413xh: add crash capture support for GCC_ARM
parent
417a9fe2fb
commit
489bd3dec8
|
@ -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__ = .;
|
||||||
|
|
Loading…
Reference in New Issue