MCO from ST-LINK: MCO output of ST-LINK MCU is used as input clock.

2019-12-14 12:12发布

• MCO from ST-LINK: MCO output of ST-LINK MCU is used as input clock. This
frequency cannot be changed, it is fixed at 8 MHz and connected to PF0/PD0/PH0-
OSC_IN of STM32 microcontroller.

我手頭有片Nucleo STM32F411RE BOARD,外部晶振8MZ,固定不能改,我在Keil C/C++ 頁面定義:USE_STDPERIPH_DRIVER,STM32F411xE,我移值标准固件库,
SYSTEM_STMF32F4XX.H,下列藍 {MOD}字體判斷STM32F411xE關鍵字有效,就會執行這句 #define HSE_VALUE    ((uint32_t)25000000) /*!< Value of the External oscillator in Hz
就跟原廠定義8MHZ不同,我需要調整為: 8MHZ,還是不用理它!!!!


#if defined(STM32F40_41xxx) || defined(STM32F427_437xx)  || defined(STM32F429_439xx) || defined(STM32F401xx)  || defined(STM32F411xE)
#if !defined  (HSE_VALUE)
  #define HSE_VALUE    ((uint32_t)25000000) /*!< Value of the External oscillator in Hz


#endif /* HSE_VALUE */
#elif defined(STM32F446xx)
#if !defined  (HSE_VALUE)
  #define HSE_VALUE    ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */
#endif /* HSE_VALUE */
#endif /* STM32F40_41xxx || STM32F427_437xx || STM32F429_439xx || STM32F401xx || STM32F411xE */
/**
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
4条回答
20061002838
1楼-- · 2019-12-14 12:31
改成8000000
jxchen
2楼-- · 2019-12-14 16:56
20061002838 发表于 2019-1-21 22:32
改成8000000

感謝回答,那PLL_M 的值不用在調整嗎
20061002838
3楼-- · 2019-12-14 20:37
 精彩回答 2  元偷偷看……
jxchen
4楼-- · 2019-12-15 00:50
20061002838 发表于 2019-1-21 22:32
改成8000000

感謝幫忙,需要修改stm32f4xx.h  file 內容

//  #define HSE_VALUE    ((uint32_t)25000000) /*!< Value of the External oscillator in Hz
#define HSE_VALUE    ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */ //SKY

一周热门 更多>