9600
- 收藏
- 点赞
- 分享
- 举报
拿到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. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
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
-
2010-06-01 23:11:38
-
2013-11-20 20:13:23
-
2018-12-01 10:59:55
-
2018-12-11 09:06:40
-
2018-10-24 16:49:47
-
2018-12-09 11:56:00
-
2019-01-03 16:26:54
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认