where is defined  extern uint32_t __SP_INIT;

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

where is defined  extern uint32_t __SP_INIT;

943 Views
stefanomanca
Contributor III

Hi, sorry for my banal question. I'm using codewarrior for kinetis kl15. Where is define  extern uint32_t __SP_INIT;

I see sp=0x20003000 but where can I see this setting?

 

Thank you.

Labels (1)
Tags (2)
0 Kudos
1 Reply

524 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Stefano:

Never feel sorry about a question.

The __SP_INIT symbol is declared and initialized in the linker file (e.g. MKL15Z128_flash.ld). There you will find something like the next:

/* Highest address of the user mode stack */

_estack = 0x20003000;    /* end of SRAM */

__SP_INIT = _estack;

Hope this helps!


Regards!
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos