Nucleo STM32F411RE BOARD 問題
STMCU
 
2876 人阅读
|
1 人回复
|
2019-01-21 
 
 
 
 
| 
 | 
 
 
MCO from ST-LINK: MCO output of ST-LINK MCU is used as input clock. Thisfrequency cannot be changed, it is fixed at 8 MHz 
Nucleo STM32F411RE BOARD, 我用標準庫移值,我現在有個問題, is fixed at 8 MHz, 
 
STM32F4XX.H 檔案,有一段程式碼如下: 
我在Keil C/C++ 頁面, USE_STDPERIPH_DRIVER,STM32F411xE 
我已經在Keil C/C++ 頁面已定義,"STM32F411xE",HSE_VALU我沒找到在那定義,如果是這樣的話,不就把#define HSE_VALUE    ((uint32_t)25000000) // 給定義了嗎 ,這樣不就對應不起來,我想知道的話,我直接修改#define HSE_VALUE    ((uint32_t)8000000) /*!< Value of the External oscillator in Hz */可以嗎 
//====================AAA=============================================== 
#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 */ 
//====================AAA============================================== 
#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 */ 
/** 
 
 |   
 
  
  
  
 
 
 | 
| 
 | 
| 
 | 
| 
 | 
 | 
 
 
 
TA的每日心情  | 难过 2021-2-27 22:16 | 
|---|
 
  签到天数: 1568 天 连续签到: 1 天 [LV.Master]伴坛终老 
司徒 
 
 
	- 积分
 - 33038
 
 
 
 
 | 
沙发
 
 
feixiang20 
 
发表于 2019-1-30 12:51:52
|
只看该作者
 
 
 
 
 
 | 
| 
 | 
| 
 | 
| 
 | 
 |