Question
About __initial_sp
Posted on August 15, 2012 at 20:30
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