AnsweredAssumed Answered

About __initial_sp

Question asked by wang.albert on Aug 15, 2012
Latest reply on Aug 16, 2012 by Clive One
I am reading the STM32 startup code right now, got a question about stack section, hope you guys can help me.
1.AREA    STACK, NOINIT, READWRITE, ALIGN=3
2.Stack_Mem       SPACE   Stack_Size
3.__initial_sp

So from line #2, Stack_Mem should pointing to the bottom of the Stack, right?
and this __initial_sp is a global variable, and based goggle, it's point to the top of the stack right?
So my question is, how __initial_sp got assigned?

Thank you guys

Outcomes