Skip to content

Commit cd2a4e2

Browse files
radhika-raghavendran0xc0170
authored andcommitted
heap and stack test
1 parent dd42985 commit cd2a4e2

File tree

1 file changed

+5
-5
lines changed
  • hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_GCC_ARM

1 file changed

+5
-5
lines changed

hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_GCC_ARM/NCS36510.ld

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* K64F ARM GCC linker script file
2+
* NCS36510 ARM GCC linker script file
33
*/
44

55
MEMORY
@@ -223,9 +223,9 @@ SECTIONS
223223
. += 0x800 - (. - __StackLimit);
224224
} > RAM
225225

226-
/* Set stack top to end of RAM, and stack limit move down by
227-
* size of stack_dummy section */
228-
__StackTop = ADDR(.stack) + SIZEOF(.stack);
229-
__StackLimit = ADDR(.stack);
226+
/* Set stack top to end of RAM */
227+
__StackTop = ORIGIN(RAM) + LENGTH(RAM);
228+
__StackLimit = __StackTop - SIZEOF(.stack);
230229
PROVIDE(__stack = __StackTop);
230+
231231
}

0 commit comments

Comments
 (0)