1.修改了DEVICE-为STM32F107VC,晶振改为25M,得到72M系统时钟。
2.将C++内改为:STM32F10X_CL
3.debug--内下面改为:SARMCM3.DLL,DARMSTM.DLL --SARMCM3.DLL,TARMSTM.DLL
4."stm32f10x.h"---#if !defined HSE_VALUE
#ifdef STM32F10X_CL
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */
#else
#define HSE_VALUE ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */
#endif /* STM32F10X_CL */
#endif /* HSE_VALUE */
因为这里默认定义了25M所以没有变更
都不行, /* Wait till HSE is ready and if Time out is reached exit */
do
{
HSEStatus = RCC_GetFlagStatus(RCC_FLAG_HSERDY);
StartUpCounter++;
} while((StartUpCounter != HSE_STARTUP_TIMEOUT) && (HSEStatus == RESET));,一直在这库函数里,里跑不出来,测量晶振都正常
请大神帮忙吧,最好有代码