错误部分:
ARM Macro Assembler Page 1
1 00000000 ;******************** (C) COPYRIGHT 2011 STMicroelectron
ics ********************
2 00000000 ;* File Name : startup_stm32f10x_hd.s
3 00000000 ;* Author : MCD Application Team
4 00000000 ;* Version : V3.5.0
5 00000000 ;* Date : 11-March-2011
6 00000000 ;* Description : STM32F10x High Density Devices v
ector table for MDK-ARM
7 00000000 ;* toolchain.
8 00000000 ;* This module performs:
9 00000000 ;* - Set the initial SP
10 00000000 ;* - Set the initial PC == Reset_Ha
ndler
11 00000000 ;* - Set the vector table entries w
ith the exceptions ISR address
12 00000000 ;* - Configure the clock system and
also configure the external
13 00000000 ;* SRAM mounted on STM3210E-EVAL
board to be used as data
14 00000000 ;* memory (optional, to be enable
d by user)
15 00000000 ;* - Branches to __main in the C li
brary (which eventually
16 00000000 ;* calls main()).
17 00000000 ;* After Reset the CortexM3 process
or is in Thread mode,
18 00000000 ;* priority is Privileged, and the
Stack is set to Main.
19 00000000 ;* <<< Use Configuration Wizard in Context Menu >>>
20 00000000 ;*******************************************************
************************
21 00000000 ; THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS A
T PROVIDING CUSTOMERS
22 00000000 ; WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN OR
DER FOR THEM TO SAVE TIME.
23 00000000 ; AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIAB
LE FOR ANY DIRECT,
24 00000000 ; INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY
CLAIMS ARISING FROM THE
25 00000000 ; CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOM
ERS OF THE CODING
26 00000000 ; INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR
PRODUCTS.
27 00000000 ;*******************************************************
************************
28 00000000
29 00000000 ; Amount of memory (in bytes) allocated for Stack
30 00000000 ; Tailor this value to your application needs
报错:
Rebuild target 'Target 1'
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)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
main.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)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
system_stm32f10x.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)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
stm32f10x_it.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)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\HARDWARE\LED\led.c: 0 warnings, 1 error
compiling pwm.c...
..\USER\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\HARDWARE\PWM\pwm.c: 0 warnings, 1 error
compiling oled.c...
..\USER\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\HARDWARE\OLED\oled.c: 0 warnings, 1 error
compiling adc.c...
..\USER\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\HARDWARE\ADC\adc.c: 0 warnings, 1 error
compiling scan.c...
..\USER\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\HARDWARE\SCAN\scan.c: 0 warnings, 1 error
compiling buzzer.c...
..\USER\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\HARDWARE\Buzzer\buzzer.c: 0 warnings, 1 error
compiling timer.c...
..\USER\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\HARDWARE\TIMER\timer.c: 0 warnings, 1 error
compiling dma.c...
..\USER\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\HARDWARE\DMA\dma.c: 0 warnings, 1 error
compiling move.c...
..\USER\stm32f10x.h(96): error: #35: #error directive: "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\HARDWARE\move\move.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)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\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)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\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)"
#error "Please select first the target STM32F10x device used in your application (in stm32f10x.h file)"
..\SYSTEM\usart\usart.c: 0 warnings, 1 error
compiling core_cm3.c...
assembling startup_stm32f10x_hd.s...
startup_stm32f10x_hd.s: Error: A1067E: Output file specified as '..\CORE\startup_stm32f10x_hd.s', but it has already been specified as '..\obj\startup_stm32f10x_hd.o'
.\startup_stm32f10x_hd.lst(4): error: A1630E: Specified processor or architecture does not support ARM instructions
.\startup_stm32f10x_hd.lst(7): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(8): error: A1163E: Unknown opcode ics , expecting opcode or Macro
.\startup_stm32f10x_hd.lst(9): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(10): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(11): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(12): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(13): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(14): error: A1163E: Unknown opcode ector , expecting opcode or Macro
.\startup_stm32f10x_hd.lst(15): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(16): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(17): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(18): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(19): error: A1163E: Unknown opcode ndler , expecting opcode or Macro
.\startup_stm32f10x_hd.lst(20): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(21): error: A1163E: Unknown opcode ith , expecting opcode or Macro
.\startup_stm32f10x_hd.lst(22): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(23): error: A1163E: Unknown opcode also , expecting opcode or Macro
.\startup_stm32f10x_hd.lst(24): error: A1137E: Unexpected characters at end of line
.\startup_stm32f10x_hd.lst(25): error: A1163E: Unknown opcode board , expecting opcode or Macro
.\startup_stm32f10x_hd.lst(26): error: A1137E: Unexpected characters at end o