mustang

mustang

0个粉丝

7

问答

0

专栏

2

资料

mustang  发布于  2014-05-06 10:27:39
采纳率 0%
7个问答
9283

拿到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
我来回答
回答2个
时间排序
认可量排序

fox-cool

0个粉丝

9

问答

0

专栏

0

资料

fox-cool 2014-05-06 15:16:26
认可0
看样子是在调试STM32F0,要加下面的东西
在Preprocess symbols 加 USE_STDPERIPH_DRIVER,STM32F0XX

mustang

0个粉丝

7

问答

0

专栏

2

资料

mustang 2014-05-07 11:02:19
认可0
问题解决看总结 贴子
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区