AnsweredAssumed Answered

STM32103RC Firmware not starting, had to modify system_stm32f10x.c to work. Why?

Question asked by cassar.joseph on Jan 14, 2015
Latest reply on Jan 15, 2015 by Clive One
I have this problem where on certain boards, the firmware does not start. I have an STM32F103RC with ext 16Mhz crystal. Some boards work normally and some fail to start. Those that were failing, I fixed the issue by commenting the #define SYSCLK_FREQ_72MHz  72000000 from the following code from the system_stm32f10x.c, hence will always use the HSI

#if defined (STM32F10X_LD_VL) || (defined STM32F10X_MD_VL) || (defined STM32F10X_HD_VL)
/* #define SYSCLK_FREQ_HSE    HSE_VALUE */
 #define SYSCLK_FREQ_24MHz  24000000
#else
/* #define SYSCLK_FREQ_HSE    HSE_VALUE */
/* #define SYSCLK_FREQ_24MHz  24000000 */
/* #define SYSCLK_FREQ_36MHz  36000000 */
/* #define SYSCLK_FREQ_48MHz  48000000 */
/* #define SYSCLK_FREQ_56MHz  56000000 */
#define SYSCLK_FREQ_72MHz  72000000
#endif


Why is this happening??

Outcomes