10126
- 收藏
- 点赞
- 分享
- 举报
拿到STM32F0系列
建了个工程,编译发现,st的库文件定义的找不到,可是这个明明添加了。 求助
Build target 'Target 1'
compiling system_stm32f0xx.c...
compiling main.c...
user\main.c(26): warning: #223-D: function "GPIO_SetBits" declared implicitly
user\main.c(26): error: #20: identifier "GPIO_Pin_11" is undefined
user\main.c(33): error: #20: identifier "GPIO_Pin_4" is undefined
user\main.c(35): warning: #223-D: function "GPIO_ResetBits" declared implicitly
compiling uart.c...
drive\uart.c(20): error: #20: identifier "GPIO_InitTypeDef" is undefined
drive\uart.c(21): error: #20: identifier "USART_InitTypeDef" is undefined
drive\uart.c(23): warning: #223-D: function "RCC_AHBPeriphClockCmd" declared implicitly
drive\uart.c(23): error: #20: identifier "RCC_AHBPeriph_GPIOA" is undefined
drive\uart.c(24): warning: #223-D: function "RCC_APB2PeriphClockCmd" declared implicitly
drive\uart.c(24): error: #20: identifier "RCC_APB2Periph_USART1" is undefined
drive\uart.c(26): warning: #223-D: function "GPIO_PinAFConfig" declared implicitly
drive\uart.c(26): error: #20: identifier "GPIO_PinSource9" is undefined
drive\uart.c(26): error: #20: identifier "GPIO_AF_1" is undefined
drive\uart.c(27): error: #20: identifier "GPIO_PinSource10" is undefined
drive\uart.c(31): error: #20: identifier "GPIO_Pin_9" is undefined
drive\uart.c(31): error: #20: identifier "GPIO_Pin_10" is undefined
drive\uart.c(32): error: #20: identifier "GPIO_Mode_AF" is undefined
drive\uart.c(33): error: #20: identifier "GPIO_OType_PP" is undefined
drive\uart.c(34): error: #20: identifier "GPIO_PuPd_UP" is undefined
drive\uart.c(35): error: #20: identifier "GPIO_Speed_50MHz" is undefined
drive\uart.c(36): warning: #223-D: function "GPIO_Init" declared implicitly
drive\uart.c(39): error: #20: identifier "USART_WordLength_8b" is undefined
drive\uart.c(40): error: #20: identifier "USART_StopBits_1" is undefined
drive\uart.c(41): error: #20: identifier "USART_Parity_No" is undefined
drive\uart.c(42): error: #20: identifier "USART_HardwareFlowControl_None" is undefined
drive\uart.c(43): error: #20: identifier "USART_Mode_Rx" is undefined
drive\uart.c(43): error: #20: identifier "USART_Mode_Tx" is undefined
drive\uart.c(44): warning: #223-D: function "USART_Init" declared implicitly
drive\uart.c(46): warning: #223-D: function "USART_Cmd" declared implicitly
drive\uart.c(82): warning: #223-D: function "USART_SendData" declared implicitly
drive\uart.c(83): warning: #223-D: function "USART_GetFlagStatus" declared implicitly
drive\uart.c(83): error: #20: identifier "USART_FLAG_TXE" is undefined
drive\uart.c(91): error: #20: identifier "GPIO_InitTypeDef" is undefined
drive\uart.c(92): warning: #223-D: function "RCC_AHBPeriphClockCmd" declared implicitly
drive\uart.c(92): error: #20: identifier "RCC_AHBPeriph_GPIOB" is undefined
drive\uart.c(93): error: #20: identifier "GPIO_Pin_4" is undefined
drive\uart.c(93): error: #20: identifier "GPIO_Pin_5" is undefined
drive\uart.c(93): error: #20: identifier "GPIO_Pin_6" is undefined
drive\uart.c(94): error: #20: identifier "GPIO_Mode_OUT" is undefined
drive\uart.c(95): error: #20: identifier "GPIO_OType_PP" is undefined
drive\uart.c(96): error: #20: identifier "GPIO_Speed_Level_3" is undefined
drive\uart.c(97): warning: #223-D: function "GPIO_Init" declared implicitly
drive\uart.c(98): warning: #223-D: function "GPIO_SetBits" declared implicitly
drive\uart.c(103): error: #20: identifier "RCC_AHBPeriph_GPIOA" is undefined
drive\uart.c(104): error: #20: identifier "GPIO_Pin_11" is undefined
compiling stm32f0xx_usart.c...
lib\src\stm32f0xx_usart.c(81): error: #5: cannot open source input file "stm32f0xx_usart.h": No such file or directory
compiling stm32f0xx_rcc.c...
lib\src\stm32f0xx_rcc.c(58): error: #5: cannot open source input file "stm32f0xx_rcc.h": No such file or directory
compiling stm32f0xx_gpio.c...
lib\src\stm32f0xx_gpio.c(76): error: #5: cannot open source input file "stm32f0xx_gpio.h": No such file or directory
Target not created
Build target 'Target 1'
compiling system_stm32f0xx.c...
compiling main.c...
user\main.c(26): warning: #223-D: function "GPIO_SetBits" declared implicitly
user\main.c(26): error: #20: identifier "GPIO_Pin_11" is undefined
user\main.c(33): error: #20: identifier "GPIO_Pin_4" is undefined
user\main.c(35): warning: #223-D: function "GPIO_ResetBits" declared implicitly
compiling uart.c...
drive\uart.c(20): error: #20: identifier "GPIO_InitTypeDef" is undefined
drive\uart.c(21): error: #20: identifier "USART_InitTypeDef" is undefined
drive\uart.c(23): warning: #223-D: function "RCC_AHBPeriphClockCmd" declared implicitly
drive\uart.c(23): error: #20: identifier "RCC_AHBPeriph_GPIOA" is undefined
drive\uart.c(24): warning: #223-D: function "RCC_APB2PeriphClockCmd" declared implicitly
drive\uart.c(24): error: #20: identifier "RCC_APB2Periph_USART1" is undefined
drive\uart.c(26): warning: #223-D: function "GPIO_PinAFConfig" declared implicitly
drive\uart.c(26): error: #20: identifier "GPIO_PinSource9" is undefined
drive\uart.c(26): error: #20: identifier "GPIO_AF_1" is undefined
drive\uart.c(27): error: #20: identifier "GPIO_PinSource10" is undefined
drive\uart.c(31): error: #20: identifier "GPIO_Pin_9" is undefined
drive\uart.c(31): error: #20: identifier "GPIO_Pin_10" is undefined
drive\uart.c(32): error: #20: identifier "GPIO_Mode_AF" is undefined
drive\uart.c(33): error: #20: identifier "GPIO_OType_PP" is undefined
drive\uart.c(34): error: #20: identifier "GPIO_PuPd_UP" is undefined
drive\uart.c(35): error: #20: identifier "GPIO_Speed_50MHz" is undefined
drive\uart.c(36): warning: #223-D: function "GPIO_Init" declared implicitly
drive\uart.c(39): error: #20: identifier "USART_WordLength_8b" is undefined
drive\uart.c(40): error: #20: identifier "USART_StopBits_1" is undefined
drive\uart.c(41): error: #20: identifier "USART_Parity_No" is undefined
drive\uart.c(42): error: #20: identifier "USART_HardwareFlowControl_None" is undefined
drive\uart.c(43): error: #20: identifier "USART_Mode_Rx" is undefined
drive\uart.c(43): error: #20: identifier "USART_Mode_Tx" is undefined
drive\uart.c(44): warning: #223-D: function "USART_Init" declared implicitly
drive\uart.c(46): warning: #223-D: function "USART_Cmd" declared implicitly
drive\uart.c(82): warning: #223-D: function "USART_SendData" declared implicitly
drive\uart.c(83): warning: #223-D: function "USART_GetFlagStatus" declared implicitly
drive\uart.c(83): error: #20: identifier "USART_FLAG_TXE" is undefined
drive\uart.c(91): error: #20: identifier "GPIO_InitTypeDef" is undefined
drive\uart.c(92): warning: #223-D: function "RCC_AHBPeriphClockCmd" declared implicitly
drive\uart.c(92): error: #20: identifier "RCC_AHBPeriph_GPIOB" is undefined
drive\uart.c(93): error: #20: identifier "GPIO_Pin_4" is undefined
drive\uart.c(93): error: #20: identifier "GPIO_Pin_5" is undefined
drive\uart.c(93): error: #20: identifier "GPIO_Pin_6" is undefined
drive\uart.c(94): error: #20: identifier "GPIO_Mode_OUT" is undefined
drive\uart.c(95): error: #20: identifier "GPIO_OType_PP" is undefined
drive\uart.c(96): error: #20: identifier "GPIO_Speed_Level_3" is undefined
drive\uart.c(97): warning: #223-D: function "GPIO_Init" declared implicitly
drive\uart.c(98): warning: #223-D: function "GPIO_SetBits" declared implicitly
drive\uart.c(103): error: #20: identifier "RCC_AHBPeriph_GPIOA" is undefined
drive\uart.c(104): error: #20: identifier "GPIO_Pin_11" is undefined
compiling stm32f0xx_usart.c...
lib\src\stm32f0xx_usart.c(81): error: #5: cannot open source input file "stm32f0xx_usart.h": No such file or directory
compiling stm32f0xx_rcc.c...
lib\src\stm32f0xx_rcc.c(58): error: #5: cannot open source input file "stm32f0xx_rcc.h": No such file or directory
compiling stm32f0xx_gpio.c...
lib\src\stm32f0xx_gpio.c(76): error: #5: cannot open source input file "stm32f0xx_gpio.h": No such file or directory
Target not created
我来回答
回答2个
时间排序
认可量排序
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2018-12-13 09:41:54
-
2013-08-25 13:00:42
-
2013-08-25 13:11:25
-
2013-08-28 01:12:28
-
2013-11-29 22:23:19
-
2013-08-25 19:27:11
-
2013-08-25 14:48:38
-
2013-08-25 11:57:26
-
2018-12-11 09:02:19
-
2021-01-22 22:14:48
-
2018-12-29 15:37:34
-
2013-11-20 20:19:01
-
2013-11-20 20:13:23
-
2010-06-01 23:11:38
-
2018-12-01 10:59:55
-
2018-12-11 09:06:40
-
2018-10-24 16:49:47
-
2013-11-20 20:21:12
-
2020-06-30 17:19:20
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
100Hi3519DV500移植阿里云aliyun-oss-c-sdk-3.11.2
-
10【悬赏】Hi3519DV500在新打板的硬件上调用svp_acl_mdl_execute 会宕机
-
10海思 PQTools 使用时显示无法注册ae库 awb库
-
50求imx291 mclk37.125M 4lane 1920x1080@30fps WDR的初始化系列
-
5Hi3516DV500-DMEBPLUS_6L_T_LPDDR4_2400M-2GB_32bit-A55_850M.xlsm
-
25鸿鸥派【Hi3519DV500】双摄sc450ai+10.1显示屏点不亮
-
5SS626接WCH HUB芯片CH335F问题
-
10求一份RK3588下IMX586摄像头的IQ json文件
-
50Hi3519DV500+OS04A10 slave驱动 (双目同步问题)
-
103616 3403 FPN标定黑斑问题
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认

微信扫码分享
QQ好友