From 5df957e0d8b12367f9a7324761432245b4cbcc6a Mon Sep 17 00:00:00 2001 From: ohagendorf Date: Sun, 28 Dec 2014 22:54:46 +0100 Subject: [PATCH] [NUCLEO_F302R8] There exists an inconsistency between official STM schematic of Nucleo boards and the existing hardware. Each board should have an 8MHz external clock source. That is not the case. At some boards the solder jumper is existing and with that the external clock source. At some other boards the solder jumper is not available. The Nucleo_F302 should run with 72MHz but that is only possible with an external clock source. Because of a missing solder jumper it runs only with the internal clock source, and that's why only with 64MHz. --- libraries/rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c b/libraries/rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c index 5ed9204f36..178aa0f603 100755 --- a/libraries/rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c +++ b/libraries/rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c @@ -116,7 +116,7 @@ # if defined(TARGET_LPC1768) || defined(TARGET_LPC2368) # define OS_CLOCK 96000000 -# elif defined(TARGET_LPC1347) || defined(TARGET_STM32F303VC) || defined(TARGET_LPC1549) || defined(TARGET_STM32F302R8) || defined(TARGET_STM32F334R8) || defined(TARGET_STM32F334C8) +# elif defined(TARGET_LPC1347) || defined(TARGET_STM32F303VC) || defined(TARGET_LPC1549) || defined(TARGET_STM32F334R8) || defined(TARGET_STM32F334C8) # define OS_CLOCK 72000000 # elif defined(TARGET_LPC11U24) || defined(TARGET_LPC11U35_401) || defined(TARGET_LPC11U35_501) || defined(TARGET_LPCCAPPUCCINO) || defined(TARGET_LPC1114) || defined(TARGET_KL25Z) || defined(TARGET_KL05Z) || defined(TARGET_KL46Z) || defined(TARGET_KL43Z) || defined(TARGET_STM32F051R8) || defined(TARGET_LPC11U68) @@ -155,6 +155,9 @@ #elif defined(TARGET_STM32F429ZI) # define OS_CLOCK 168000000 +#elif defined(TARGET_STM32F302R8) +# define OS_CLOCK 64000000 + # else # error "no target defined" # endif