@@ -4,9 +4,13 @@ ENTRY(Reset_Handler)
44/* Highest address of the user mode stack */
55__sstack = ORIGIN (DTCMRAM );
66__estack = ORIGIN (DTCMRAM ) + LENGTH (DTCMRAM );
7+ PROVIDE (_sstack = __sstack );
8+ PROVIDE (_estack = __estack );
79/* Generate a link error if heap and stack don't fit into DTCM */
810__Min_Heap_Size = 0x200 ; /* required amount of heap */
911__Min_Stack_Size = 0x400 ; /* required amount of stack */
12+ PROVIDE (_Min_Heap_Size = __Min_Heap_Size );
13+ PROVIDE (_Min_Stack_Size = __Min_Stack_Size );
1014
1115#if !defined(__ITCM_SIZE)
1216 #define __ITCM_SIZE (64K ) /* Default ITCM size if not defined by the build system */
@@ -76,6 +80,7 @@ SECTIONS
7680 {
7781 . = ALIGN (4 );
7882 __stext = ABSOLUTE (.);
83+ PROVIDE (_stext = __stext);
7984
8085#if !__ITCM_BUILD
8186 *(.text ) /* .text sections (code) */
@@ -90,6 +95,7 @@ SECTIONS
9095
9196 . = ALIGN (4 );
9297 __etext = ABSOLUTE (.);
98+ PROVIDE (_etext = __etext);
9399 } >FLASH
94100
95101 /* Code running in ITCM RAM (0 Wait States, Instruction Bus) */
@@ -182,10 +188,12 @@ SECTIONS
182188 {
183189 . = ALIGN (8 );
184190 __hf_stack_start = .;
191+ PROVIDE (_hf_stack_start = __hf_stack_start);
185192 . += 0x400 ; /* 1 KB */
186193
187194 . = ALIGN (8 );
188195 __hf_stack_end = .;
196+ PROVIDE (_hf_stack_end = __hf_stack_end);
189197 } >DTCMRAM
190198
191199 /* Initialized data sections goes into RAM, copied from FLASH */
0 commit comments