STM32 Keil报错#67: expected a “}“ 和 Error: L6915E: Library reports error: __use_no_semihosting

目录

一、问题: Keil报错#67: expected a "}" 

1、报错原因:宏定义与型号不匹配

2、解决方法

二、问题 :Error: L6915E:

1、报错原因

2、解决方法:打开基础库。


一、问题: Keil报错#67: expected a "}" 

STM32 在Keil中更改主控芯片导致的编译报错:..\CMSIS\stm32f10x.h(298): error:  #67: expected a "}"
keil程序默认选的是STM32F103C8芯片,现在要用STM32F103F103ZET6型号,直接更改魔法棒里的devices的芯片型号

但是随后的编译发现报了错,情况如下:

..\CMSIS\stm32f10x.h(298): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
stm32f10x_it.c: 0 warnings, 1 error
compiling stm32f10x_rcc.c...
..\CMSIS\stm32f10x.h(298): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
..\FWlib\src\stm32f10x_rcc.c: 0 warnings, 1 error
compiling stm32f10x_gpio.c...
..\CMSIS\stm32f10x.h(298): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
..\FWlib\src\stm32f10x_gpio.c: 0 warnings, 1 error
compiling usart1.c...
..\CMSIS\stm32f10x.h(298): error:  #67: expected a "}"
    ADC1_2_IRQn                 = 18,     /*!< ADC1 and ADC2 global Interrupt                       */
usart1.c: 0 warnings, 1 error
compiling misc.c...
..\CMSIS\stm32f10x.h(298): error:  #67: expec

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值