OpenEdv-开源电子网

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

郁闷啊!

[复制链接]

3

主题

8

帖子

0

精华

新手上路

积分
40
金钱
40
注册时间
2012-9-8
在线时间
0 小时
发表于 2012-9-10 23:13:18 | 显示全部楼层 |阅读模式
为什么按照不完全手册2.0学,到这里就是得不到结果!


但是我的结果是这样的,


Build target 'Target 1'
compiling txet.c...
txet.c(4): error:  #13: expected a file name
compiling delay.c...
..\SYSTEM\delay\delay.c(27): warning:  #223-D: function "SysTick_CLKSourceConfig" declared implicitly
..\SYSTEM\delay\delay.c(27): error:  #20: identifier "SysTick_CLKSource_HCLK_Div8" is undefined
compiling sys.c...
..\SYSTEM\sys\sys.c(18): warning:  #223-D: function "NVIC_PriorityGroupConfig" declared implicitly
..\SYSTEM\sys\sys.c(18): error:  #20: identifier "NVIC_PriorityGroup_2" is undefined
compiling usart.c...
..\SYSTEM\usart\usart.c(75): error:  #20: identifier "GPIO_InitTypeDef" is undefined
..\SYSTEM\usart\usart.c(76): error:  #20: identifier "USART_InitTypeDef" is undefined
..\SYSTEM\usart\usart.c(77): error:  #20: identifier "NVIC_InitTypeDef" is undefined
..\SYSTEM\usart\usart.c(79): warning:  #223-D: function "RCC_APB2PeriphClockCmd" declared implicitly
..\SYSTEM\usart\usart.c(79): error:  #20: identifier "RCC_APB2Periph_USART1" is undefined
..\SYSTEM\usart\usart.c(79): error:  #20: identifier "RCC_APB2Periph_GPIOA" is undefined
..\SYSTEM\usart\usart.c(79): error:  #20: identifier "RCC_APB2Periph_AFIO" is undefined
..\SYSTEM\usart\usart.c(81): error:  #20: identifier "GPIO_Pin_9" is undefined
..\SYSTEM\usart\usart.c(82): error:  #20: identifier "GPIO_Speed_50MHz" is undefined
..\SYSTEM\usart\usart.c(83): error:  #20: identifier "GPIO_Mode_AF_PP" is undefined
..\SYSTEM\usart\usart.c(84): warning:  #223-D: function "GPIO_Init" declared implicitly
..\SYSTEM\usart\usart.c(87): error:  #20: identifier "GPIO_Pin_10" is undefined
..\SYSTEM\usart\usart.c(88): error:  #20: identifier "GPIO_Mode_IN_FLOATING" is undefined
..\SYSTEM\usart\usart.c(98): warning:  #223-D: function "NVIC_Init" declared implicitly
..\SYSTEM\usart\usart.c(103): error:  #20: identifier "USART_WordLength_8b" is undefined
..\SYSTEM\usart\usart.c(104): error:  #20: identifier "USART_StopBits_1" is undefined
..\SYSTEM\usart\usart.c(105): error:  #20: identifier "USART_Parity_No" is undefined
..\SYSTEM\usart\usart.c(106): error:  #20: identifier "USART_HardwareFlowControl_None" is undefined
..\SYSTEM\usart\usart.c(107): error:  #20: identifier "USART_Mode_Rx" is undefined
..\SYSTEM\usart\usart.c(107): error:  #20: identifier "USART_Mode_Tx" is undefined
..\SYSTEM\usart\usart.c(109): warning:  #223-D: function "USART_Init" declared implicitly
..\SYSTEM\usart\usart.c(112): warning:  #223-D: function "USART_ITConfig" declared implicitly
..\SYSTEM\usart\usart.c(112): error:  #20: identifier "USART_IT_RXNE" is undefined
..\SYSTEM\usart\usart.c(114): warning:  #223-D: function "USART_Cmd" declared implicitly
..\SYSTEM\usart\usart.c(121): warning:  #223-D: function "USART_GetITStatus" declared implicitly
..\SYSTEM\usart\usart.c(121): error:  #20: identifier "USART_IT_RXNE" is undefined
..\SYSTEM\usart\usart.c(123): warning:  #223-D: function "USART_ReceiveData" declared implicitly
Target not created
每一步我都细心的按照上面的步骤来的,已经重复了3次,是不是我的电脑有问题?
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165516
金钱
165516
注册时间
2010-12-1
在线时间
2116 小时
发表于 2012-9-10 23:27:56 | 显示全部楼层
你的SYSTEM文件夹拷贝错了.
你拷贝的是库函数版本的,要拷贝寄存器版本的!
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复 支持 1 反对 0

使用道具 举报

3

主题

8

帖子

0

精华

新手上路

积分
40
金钱
40
注册时间
2012-9-8
在线时间
0 小时
 楼主| 发表于 2012-9-11 08:55:32 | 显示全部楼层
回复【2楼】正点原子:
---------------------------------
谢谢啦,现在可以了!
回复 支持 反对

使用道具 举报

0

主题

2

帖子

0

精华

新手入门

积分
22
金钱
22
注册时间
2012-12-16
在线时间
0 小时
发表于 2012-12-16 17:12:50 | 显示全部楼层
寄存器版本的在哪里啊?
回复 支持 反对

使用道具 举报

0

主题

2

帖子

0

精华

新手入门

积分
22
金钱
22
注册时间
2012-12-16
在线时间
0 小时
发表于 2012-12-16 17:13:10 | 显示全部楼层
回复【3楼】huangyuping777:
---------------------------------
寄存器版本的在哪里啊? 
回复 支持 反对

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165516
金钱
165516
注册时间
2010-12-1
在线时间
2116 小时
发表于 2012-12-16 18:49:15 | 显示全部楼层
http://www.openedv.com/posts/list/9006.htm?fromAll=0
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复 支持 反对

使用道具 举报

1

主题

2

帖子

0

精华

新手入门

积分
26
金钱
26
注册时间
2013-9-4
在线时间
0 小时
发表于 2013-9-4 15:24:52 | 显示全部楼层
可是为什么要是寄存器版本的呢???
回复 支持 反对

使用道具 举报

0

主题

2

帖子

0

精华

新手入门

积分
8
金钱
8
注册时间
2016-10-26
在线时间
0 小时
发表于 2016-10-26 11:02:06 | 显示全部楼层
呆小生 发表于 2013-9-4 15:24
可是为什么要是寄存器版本的呢???

上面的错误大都是XXX没定义。刚刚去看了看寄存器版本的system源程序,发现那些没定义的XXX没有被使用,所以就没错吧
回复 支持 反对

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-5-24 11:25

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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