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
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
---------------------------------
在C/C++选项卡,定义全局宏:STM32F10X_HD
---------------------------------
选了,不就是103ZE吗
一周热门 更多>