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

2019-07-21 03:29发布

Build target 'KEY'
assembling startup_stm32f10x_hd.s...
compiling core_cm3.c...
compiling beep.c...
..USERstm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:     ^
..USERstm32f10x.h: ..HARDWAREBEEPeep.c: 0 warnings, 1 error
compiling key.c...
..USERstm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:     ^
..USERstm32f10x.h: ..HARDWAREKEYkey.c: 0 warnings, 1 error
compiling led.c...
..USERstm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:     ^
..USERstm32f10x.h: ..HARDWARELEDled.c: 0 warnings, 1 error
compiling delay.c...
..USERstm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:     ^
..USERstm32f10x.h: ..SYSTEMdelaydelay.c: 0 warnings, 1 error
compiling sys.c...
..USERstm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:     ^
..USERstm32f10x.h: ..SYSTEMsyssys.c: 0 warnings, 1 error
compiling usart.c...
..USERstm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:     ^
..USERstm32f10x.h: ..SYSTEMusartusart.c: 0 warnings, 1 error
compiling misc.c...
..USERstm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:     ^
..USERstm32f10x.h: ..FWLIBsrcmisc.c: 0 warnings, 1 error
compiling stm32f10x_gpio.c...
..USERstm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:     ^
..USERstm32f10x.h: ..FWLIBsrcstm32f10x_gpio.c: 0 warnings, 1 error
compiling stm32f10x_rcc.c...
..USERstm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:     ^
..USERstm32f10x.h: ..FWLIBsrcstm32f10x_rcc.c: 0 warnings, 1 error
compiling stm32f10x_usart.c...
..USERstm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:     ^
..USERstm32f10x.h: ..FWLIBsrcstm32f10x_usart.c: 0 warnings, 1 error
compiling main.c...
..USERstm32f10x.h(96): error:  #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:    #error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..USERstm32f10x.h:     ^
..USERstm32f10x.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
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
5条回答
正点原子
1楼-- · 2019-07-21 09:28
回复【3楼】firsttady:
---------------------------------
在C/C++选项卡,定义全局宏:STM32F10X_HD
taizonglai
2楼-- · 2019-07-21 15:25
没有选择器件吧!!
firsttady
3楼-- · 2019-07-21 16:49
回复【2楼】zuozhongkai:
---------------------------------
选了,不就是103ZE吗
FantaSy_
4楼-- · 2019-07-21 18:19
 精彩回答 2  元偷偷看……
黑夜之狼
5楼-- · 2019-07-21 19:38
哈哈,LZ莫紧张,仔细看看原子哥的pdf书,里面有详细的新建工程步骤

一周热门 更多>