Use the stack top defined in the linkerscript

pull/2052/head
Niklas Hauser 2016-06-23 17:03:26 +01:00 committed by Milosch Meriac
parent ec1ec7c3e2
commit 5044c968dd
1 changed files with 5 additions and 0 deletions

View File

@ -376,7 +376,12 @@ osThreadDef_t os_thread_def_main = {(os_pthread)pre_main, osPriorityNormal, 1U,
#define INITIAL_SP (0x20003000UL)
#elif defined(TARGET_K64F)
#if defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED)
extern uint32_t __StackTop[];
#define INITIAL_SP (__StackTop)
#else
#define INITIAL_SP (0x20030000UL)
#endif
#elif defined(TARGET_K22F)
#define INITIAL_SP (0x20010000UL)