From 5e1716f63f7d5bb3e5433e152122cb729115b69b Mon Sep 17 00:00:00 2001 From: dominus97 Date: Sat, 7 Mar 2015 22:13:37 +0100 Subject: [PATCH] Added support for Nucleo F303RE I am not sure if it's the right SP, but the basic blink code works. What does the SP stand for? Stack pointer? Also, if you could tell me where to look for the correct address, I would. I looked in the reference manual and the programming manual that STM provides, with no luck. Cheers --- libraries/rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h b/libraries/rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h index 1d051cc013..b907cc1573 100755 --- a/libraries/rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h +++ b/libraries/rtos/rtx/TARGET_CORTEX_M/RTX_CM_lib.h @@ -298,6 +298,9 @@ osThreadDef_t os_thread_def_main = {(os_pthread)main, osPriorityNormal, 0, NULL} #elif defined(TARGET_STM32F401VC) #define INITIAL_SP (0x20010000UL) +#elif defined(TARGET_STM32F303RE) +#define INITIAL_SP (0x20010000UL) //Not sure if right address, but it works! + #else #error "no target defined"