Home > other >  Stm32 source compile error (source in other people's computer no problem), need operation code
Stm32 source compile error (source in other people's computer no problem), need operation code

Time:12-02


The wrong parts:

ARM Macro Assembler Page 1


1 00000000; * * * * * * * * * * * * * * * * * * * * (C) COPYRIGHT 2011 STMicroelectron
Ics * * * * * * * * * * * * * * * * * * * *
2, 00000000; * the File Name: startup_stm32f10x_hd. S
3, 00000000; * the Author: MCD Application Team
4 00000000; * Version: V3.5.0
5, 00000000; * the 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; * an SRAM mounted on STM3210E - EVAL
Board to be 2 as data
14, 00000000; * the memory (optional, to enable
D by the user)
15, 00000000; * - Branches to __main li in the C
Brary (which eventually
16, 00000000; * calls main ()).
17 00000000; * After Reset the CortexM3 process
Or is in the Thread mode,
18 00000000; * priority is ring, and the
The Stack is set to the Main.
19, 00000000; * & lt;
20, 00000000; * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * *
21 00000000; THE PRESENT THE FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS A
T PROVIDING CUSTOMERS
22 00000000; WITH CODING INFORMATION REGARDING THEIR PRODUCTS OR IN
DER FOR THEM TO SAVE TIME.
23, 00000000; AS A RESULT, STMICROELECTRONICS SHALL NOT BE by LIAB
LE FOR ANY DIRECT,
24 00000000; INDIRECT OR CONSEQUENTIAL DAMAGES WITH the new one TO ANY
CLAIMS ARISING FROM THE
25, 00000000; THE loss to THE FIRMWARE AND/OR THE USE MADE BY CUSTOM
ERS OF THE CODING
26, 00000000; The INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR
PRODUCTS.
27, 00000000; * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* * * * * * * * * * * * * * * * * * * * * * * *
28 00000000
29. 00000000; The Amount of memory (in bytes) allocated for Stack
30, 00000000; Tailor this value to the application needs

Error:

Rebuild the target 'target 1
compiling main.c...
./USER/stm32f10x. H (96) : error: # 35: # error directive: "both Please select first the target stm32f10x device, informs the in your application (in stm32f10x. H file)"
# error "both Please select first the target STM32F10x device, informs the in your application (in STM32F10x. H file)"
Main. C: 0 warnings, error 1
The compiling system_stm32f10x. C...
Stm32f10x. H (96) : error: # 35: # error directive: "both Please select first the target stm32f10x device, informs the in your application (in stm32f10x. H file)"
# error "both Please select first the target STM32F10x device, informs the in your application (in STM32F10x. H file)"
System_stm32f10x. C: 0 warnings, error 1
The compiling stm32f10x_it. C...
Stm32f10x. H (96) : error: # 35: # error directive: "both Please select first the target stm32f10x device, informs the in your application (in stm32f10x. H file)"
# error "both Please select first the target STM32F10x device, informs the in your application (in STM32F10x. H file)"
Stm32f10x_it. C: 0 warnings, error 1
The compiling of led. The c...
./USER/stm32f10x. H (96) : error: # 35: # error directive: "both Please select first the target stm32f10x device, informs the in your application (in stm32f10x. H file)"
# error "both Please select first the target STM32F10x device, informs the in your application (in STM32F10x. H file)"
. \ \ HARDWARE \ LED LED. C: 0 warnings, error 1
The compiling PWM. The c...
./USER/stm32f10x. H (96) : error: # 35: # error directive: "both Please select first the target stm32f10x device, informs the in your application (in stm32f10x. H file)"
# error "both Please select first the target STM32F10x device, informs the in your application (in STM32F10x. H file)"
. PWM \ \ HARDWARE \ PWM. C: 0 warnings, error 1
compiling oled.c...
./USER/stm32f10x. H (96) : error: # 35: # error directive: "both Please select first the target stm32f10x device, informs the in your application (in stm32f10x. H file)"
# error "both Please select first the target STM32F10x device, informs the in your application (in STM32F10x. H file)"
. \ \ HARDWARE \ OLED OLED. C: 0 warnings, error 1
The compiling adc. C...
. nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related