Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 2 months ago.
INITIAL_SP in RTX_CM_lib.h
I want to know meaning of this varible: INITIAL_SP
It is defined like:
- elif defined(TARGET_STM32L152RE)
- define INITIAL_SP (0x20014000UL)
And, if use an TARGET_STM32L152RC here, then what value should it be?
1 Answer
9 years, 2 months ago.
It is the initial value of the stackpointer. Which is in the mbed memory model equal to the top of your RAM memory: If your device has the same amount of SRAM memory it will be the same. Otherwise you need to check in either the scatter file or the manual for the top of the SRAM.