查看: 1788|回复: 1

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

[复制链接]

该用户从未签到

发表于 2019-1-21 22:42:53 | 显示全部楼层 |阅读模式
分享到:
• 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,下列判断STM32F411xE关键词有效,就会执行这句 #define HSE_VALUE    ((uint32_t)25000000) /*!< Value of the External oscillator in Hz
就跟原厂定义8MHZ不同,我需要调整为: HSE_VALUE    ((uint32_t)8000000) /*!< Value of the External oscillator in Hz 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 */
/**
回复

使用道具 举报

  • TA的每日心情
    难过
    2021-2-27 22:16
  • 签到天数: 1568 天

    连续签到: 1 天

    [LV.Master]伴坛终老

    发表于 2019-1-30 12:32:18 | 显示全部楼层
    308.png
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /2 下一条



    手机版|小黑屋|与非网

    GMT+8, 2024-4-29 23:17 , Processed in 0.123533 second(s), 17 queries , MemCache On.

    ICP经营许可证 苏B2-20140176  苏ICP备14012660号-2   苏州灵动帧格网络科技有限公司 版权所有.

    苏公网安备 32059002001037号

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.