学习STM32中的点滴记录

在keil的配置界面中的C/C++中需要预定义几个字符串USE_STDPERIPH_DRIVER和STM32F10X_MD 多个的定义用逗号分开。

在老版本中,STM32F10X_MD是必须定义的,但是在keil5中,不定义也能编译通过,这个证明软件已经给你自动定义好了,他是在选择配置产品型号的时候定义的,所以就不用自己定义了。

Select the corresponding startup file depending of the used device:

- startup_stm32f10x_ld_vl.s:    for STM32 Low density Value line devices

- startup_stm32f10x_ld.s:        for STM32 Low density devices

- startup_stm32f10x_md_vl.s:  for STM32 Medium density Value line devices

- startup_stm32f10x_md.s:      for STM32 Medium density devices

- startup_stm32f10x_hd_vl.s:       for STM32 High density Value line devices
- startup_stm32f10x_hd.s:       for STM32 High density devices

- startup_stm32f10x_xl.s:        for STM32 XL density devices

- startup_stm32f10x_cl.s:        for STM32 Connectivity line devices

看产品线选择启动文件,根据RCC时钟看,VL产品总线频率都是很慢的。

HSE external high speed osc 外部高速振荡器

LSE external low speed osc 外部低速振荡器

HSI LSI 内部高速/低速振动器

HCLK AHB总线 clk时钟 PCLK1 PCLK2 APB1/APB2总线时钟CLK

keil软件调试退出时总是卡死的解决方法:把所有调试时候打的断点取消,程序停止后在退出。

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值