Skip to content

Commit 3ee1498

Browse files
committed
crash data support for NUC472 with gcc_arm
1 parent 9d5617c commit 3ee1498

File tree

1 file changed

+14
-1
lines changed
  • targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_GCC_ARM/TARGET_NU_XRAM_SUPPORTED

1 file changed

+14
-1
lines changed

targets/TARGET_NUVOTON/TARGET_NUC472/device/TOOLCHAIN_GCC_ARM/TARGET_NU_XRAM_SUPPORTED/NUC472.ld

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#define MBED_BOOT_STACK_SIZE 0x400
1515
#endif
1616

17+
M_CRASH_DATA_RAM_SIZE = 0x100;
1718
StackSize = MBED_BOOT_STACK_SIZE;
1819

1920
MEMORY
@@ -132,7 +133,19 @@ SECTIONS
132133
. += __vector_size;
133134
PROVIDE(__end_vector_table__ = .);
134135
} > RAM_INTERN
135-
136+
137+
.crash_data_ram :
138+
{
139+
. = ALIGN(8);
140+
__CRASH_DATA_RAM__ = .;
141+
__CRASH_DATA_RAM_START__ = .; /* Create a global symbol at data start */
142+
KEEP(*(.keep.crash_data_ram))
143+
*(.m_crash_data_ram) /* This is a user defined section */
144+
. += M_CRASH_DATA_RAM_SIZE;
145+
. = ALIGN(8);
146+
__CRASH_DATA_RAM_END__ = .; /* Define a global symbol at data end */
147+
} > RAM_INTERN
148+
136149
.data :
137150
{
138151
PROVIDE( __etext = LOADADDR(.data) );

0 commit comments

Comments
 (0)