新手上路
- 积分
- 45
- 金钱
- 45
- 注册时间
- 2015-4-6
- 在线时间
- 0 小时
|
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
|