stm32f107vc晶振没配置好导致printf乱码

在stm32f10x.h文件中,修改HSE_VALUE值

#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 */

猜你喜欢

转载自blog.csdn.net/qq_21401715/article/details/78710168