Skip to content

Commit 1d3d01f

Browse files
committed
Correctly set INITIAL_SP for K64F
With the latest K64F linker file the initial stack is out of sync with INITIAL_SP when uVisor is not present. This patch removes the incorrect declaration.
1 parent 16329fd commit 1d3d01f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ osThreadDef_t os_thread_def_main = {(os_pthread)pre_main, osPriorityNormal, 1U,
420420
#define INITIAL_SP (0x20003000UL)
421421

422422
#elif defined(TARGET_K64F)
423-
#if defined(FEATURE_UVISOR) && defined(TARGET_UVISOR_SUPPORTED)
423+
#if defined(__GNUC__) && !defined(__CC_ARM) /* GCC */
424424
extern uint32_t __StackTop[];
425425
#define INITIAL_SP (__StackTop)
426426
#else

0 commit comments

Comments
 (0)