STM32F407 ST-Link 晶振频率不一致导致再次下载时出现"no target connected" 原因解决方法 原因 由于使用的核心板的晶振频率与网上搜集的例程中使用的晶振频率不一致,再次下载时Keil会提示no target connected. 解决方法 修改以下两个文件中的代码: stm32f4xx.h #define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */ //参数改为25000000 system_stm32f4xx.c #define PLL_M 25 //晶振频率改为25 #define PLL_N 360 //锁相环的参数改为360