OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 5595|回复: 2

cmsis STM32F1xx_DFP 最新版v2.4.0有BUG

[复制链接]

3

主题

13

帖子

0

精华

初级会员

Rank: 2

积分
157
金钱
157
注册时间
2013-11-9
在线时间
31 小时
发表于 2022-9-6 10:52:29 | 显示全部楼层 |阅读模式
我把版本升级到V2.4.0后,使用F103VG的SPI3,编译显示使用了未定义的RCC_APB1ENR_SPI3EN 。折腾半天,又下载了V2.3.0,顺利通过了。追踪到文件stm32F10x.h,该文件在发现v2.3.0版本第2114和2118行为:
#if defined (STM32F10X_HD) || defined  (STM32F10X_CL) || defined (STM32F10X_XL)
在V2.4.0版本,行号为2117和2121:#if defined (STM32F10X_HD) || defined  (STM32F10X_CL) 少了XL,即1M以上器件。
#if defined (STM32F10X_HD) || defined  (STM32F10X_CL) || defined (STM32F10X_XL)
#define  RCC_APB1ENR_TIM5EN                 ((uint32_t)0x00000008)        /*!< Timer 5 clock enable */
#define  RCC_APB1ENR_TIM6EN                 ((uint32_t)0x00000010)        /*!< Timer 6 clock enable */
#define  RCC_APB1ENR_TIM7EN                 ((uint32_t)0x00000020)        /*!< Timer 7 clock enable */
#define  RCC_APB1ENR_SPI3EN                 ((uint32_t)0x00008000)        /*!< SPI 3 clock enable */
#define  RCC_APB1ENR_UART4EN                ((uint32_t)0x00080000)        /*!< UART 4 clock enable */
#define  RCC_APB1ENR_UART5EN                ((uint32_t)0x00100000)        /*!< UART 5 clock enable */
#define  RCC_APB1ENR_DACEN                  ((uint32_t)0x20000000)        /*!< DAC interface clock enable */
#endif

我想XL器件不可能比高密度HD器件外设少吧,或者真的没有timer5,6,7,和SPI3……?
期望哪位高人给指点指点
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

3

主题

805

帖子

0

精华

论坛元老

Rank: 8Rank: 8

积分
3831
金钱
3831
注册时间
2017-3-7
在线时间
1671 小时
发表于 2022-9-6 11:15:39 | 显示全部楼层
不确定就看下芯片手册吧
回复 支持 反对

使用道具 举报

3

主题

13

帖子

0

精华

初级会员

Rank: 2

积分
157
金钱
157
注册时间
2013-11-9
在线时间
31 小时
 楼主| 发表于 2022-9-6 11:48:54 | 显示全部楼层
a5820736 发表于 2022-9-6 11:15
不确定就看下芯片手册吧

The STM32F103xF and STM32F103xG performance line family incorporates the high-performance ARM&#174;Cortex&#174;-M3 32-bit RISC core operating at a 72 MHz frequency, high-speed embedded memories (Flash memory up to 1 Mbyte and SRAM up to 96 Kbytes), and an extensive range of enhanced I/Os and peripherals connected to two APB buses. All devices offer three 12-bit ADCs, ten general-purpose 16-bit timers plus two PWM timers, as well as standard and advanced communication interfaces: up to two I2Cs, three SPIs, two I2Ss, one SDIO, five USARTs, an USB and a CAN. The STM32F103xF/G XL-density performance line family operates in the –40 to +105 °C temperature range, from a 2.0 to 3.6 V power supply. A comprehensive set of power-saving mode allows the design of low-power applications.

以上是https://www.stmicroelectronics.com.cn/应该没错
ten general-purpose 16-bit timers ……three SPIs,
10个通用定时器,三个SPI
说BUG有点LOW,还是有什么其他办法。
关闭keil,强行把后面 || defined (STM32F10X_XL)加上去,编译通过
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2025-2-26 04:19

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表