系统时钟默认频率

HAL库内:

/**

  * @brief  This function is used to initialize the HAL Library; it must be the first

  *         instruction to be executed in the main program (before to call any other

  *         HAL function), it performs the following:

  *           Configure the Flash prefetch.

  *           Configures the SysTick to generate an interrupt each 1 millisecond,

  *           which is clocked by the HSI (at this stage, the clock is not yet

  *           configured and thus the system is running from the internal HSI at 16 MHz).

  *           Set NVIC Group Priority to 4.

  *           Calls the HAL_MspInit() callback function defined in user file

  *           "stm32f1xx_hal_msp.c" to do the global low level hardware initialization

  *

  * @note   SysTick is used as time base for the HAL_Delay() function, the application

  *         need to ensure that the SysTick time base is always set to 1 millisecond

  *         to have correct HAL operation.

  * @retval HAL status

  */

HAL_StatusTypeDef HAL_Init(void)


这里

 *           which is clocked by the HSI (at this stage, the clock is not yet

  *           configured and thus the system is running from the internal HSI at 16 MHz).

有点问题, 我看了下, SYSCLK默认应该是8MHz 才对啊

请先 登录 后评论

2 个回答

linuxa

按理说是应该8MHz,注释写的16MHz,代码复制也是16MHz

这边问下ST FAE,看怎么回复。

请先 登录 后评论
百问网-邵老师
擅长:RTOS STM32


attachments-2021-12-lj18LsIa61bafff69371d.png

请先 登录 后评论
  • 2 关注
  • 0 收藏,325 浏览
  • mercy 提出于 2021-12-14 17:31

相似问题