OpenEdv-开源电子网

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

大神帮忙看一下这是咋回事,整了2天整个人都不好了

[复制链接]

4

主题

8

帖子

0

精华

新手上路

积分
45
金钱
45
注册时间
2015-4-6
在线时间
0 小时
发表于 2015-4-6 11:25:08 | 显示全部楼层 |阅读模式
5金钱
Build target 'KEY'
assembling startup_stm32f10x_hd.s...
compiling core_cm3.c...
compiling beep.c...
..\USER\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:     ^
..\USER\stm32f10x.h: ..\HARDWARE\BEEP\beep.c: 0 warnings, 1 error
compiling key.c...
..\USER\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:     ^
..\USER\stm32f10x.h: ..\HARDWARE\KEY\key.c: 0 warnings, 1 error
compiling led.c...
..\USER\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:     ^
..\USER\stm32f10x.h: ..\HARDWARE\LED\led.c: 0 warnings, 1 error
compiling delay.c...
..\USER\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:     ^
..\USER\stm32f10x.h: ..\SYSTEM\delay\delay.c: 0 warnings, 1 error
compiling sys.c...
..\USER\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:     ^
..\USER\stm32f10x.h: ..\SYSTEM\sys\sys.c: 0 warnings, 1 error
compiling usart.c...
..\USER\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:     ^
..\USER\stm32f10x.h: ..\SYSTEM\usart\usart.c: 0 warnings, 1 error
compiling misc.c...
..\USER\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:     ^
..\USER\stm32f10x.h: ..\FWLIB\src\misc.c: 0 warnings, 1 error
compiling stm32f10x_gpio.c...
..\USER\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:     ^
..\USER\stm32f10x.h: ..\FWLIB\src\stm32f10x_gpio.c: 0 warnings, 1 error
compiling stm32f10x_rcc.c...
..\USER\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:     ^
..\USER\stm32f10x.h: ..\FWLIB\src\stm32f10x_rcc.c: 0 warnings, 1 error
compiling stm32f10x_usart.c...
..\USER\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:     ^
..\USER\stm32f10x.h: ..\FWLIB\src\stm32f10x_usart.c: 0 warnings, 1 error
compiling main.c...
..\USER\stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\USER\stm32f10x.h:     ^
..\USER\stm32f10x.h: main.c: 0 warnings, 1 error
compiling stm32f10x_it.c...
stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
stm32f10x.h:     ^
stm32f10x.h: stm32f10x_it.c: 0 warnings, 1 error
compiling system_stm32f10x.c...
stm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
stm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
stm32f10x.h:     ^
stm32f10x.h: system_stm32f10x.c: 0 warnings, 1 error
Target not created

最佳答案

查看完整内容[请看2#楼]

回复【3楼】firsttady: --------------------------------- 在C/C++选项卡,定义全局宏:STM32F10X_HD
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165371
金钱
165371
注册时间
2010-12-1
在线时间
2110 小时
发表于 2015-4-6 11:25:09 | 显示全部楼层
回复【3楼】firsttady:
---------------------------------
在C/C++选项卡,定义全局宏:STM32F10X_HD
我是开源电子网www.openedv.com站长,有关站务问题请与我联系。
正点原子STM32开发板购买店铺http://openedv.taobao.com
正点原子官方微信公众平台,点击这里关注“正点原子”
回复

使用道具 举报

88

主题

7377

帖子

5

精华

资深版主

Rank: 8Rank: 8

积分
14980
金钱
14980
注册时间
2013-11-13
在线时间
1823 小时
发表于 2015-4-6 11:39:40 | 显示全部楼层
没有选择器件吧!!
开往春天的手扶拖拉机
回复

使用道具 举报

4

主题

8

帖子

0

精华

新手上路

积分
45
金钱
45
注册时间
2015-4-6
在线时间
0 小时
 楼主| 发表于 2015-4-6 11:52:12 | 显示全部楼层
回复【2楼】zuozhongkai:
---------------------------------
选了,不就是103ZE吗
回复

使用道具 举报

14

主题

1592

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
2622
金钱
2622
注册时间
2014-7-17
在线时间
350 小时
发表于 2015-4-6 11:52:37 | 显示全部楼层
没加系统头文件吧!!!
回复

使用道具 举报

55

主题

1231

帖子

0

精华

论坛大神

Rank: 7Rank: 7Rank: 7

积分
2625
金钱
2625
注册时间
2014-2-13
在线时间
514 小时
发表于 2015-4-6 16:38:34 | 显示全部楼层
哈哈,LZ莫紧张,仔细看看原子哥的pdf书,里面有详细的新建工程步骤
技术交流,Sell 中颖单片机,欢迎私信骚扰
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2025-2-24 15:48

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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