arm 编译器 报 stray ... 错误

本文介绍了QtCreator因加入BOM导致Arm平台使用gcc4.2编译失败的问题及解决方案。用户可在QtCreator的文本编辑设置中将UTF-8 BOM更改为总是删除以避免该问题。
由于 QtCreator在文件头部加入了BOM,而Arm上使用的编译器为gcc 4.2版本,不支持BOM而导致的问题。
解决方法为 在QtCreator 工具->选项-> 文本编辑->行为 中,把UTF-8 BOM改为总是删除 即可
“PREFIX = arm-none-eabi- CC = $(PREFIX)gcc STM32_Per_Src_Path = Libraries/STM32F10x_StdPeriph_Driver/src SOURCES = User/main.c SOURCES += User/stm32f10x_it.c #SOURCES += Libraries/CMSIS/core_cm3.c SOURCES += Libraries/CMSIS/system_stm32f10x.c SOURCES += $(STM32_Per_Src_Path)/misc.c SOURCES += $(STM32_Per_Src_Path)/stm32f10x_rcc.c SOURCES += $(STM32_Per_Src_Path)/stm32f10x_gpio.c ASM_SOURCES = Libraries/CMSIS/startup_stm32f10x_md.s OBJS = $(SOURCES:.c=.o) $(ASM_SOURCES:.s=.o) TARGET = build/stm32f103_project MCU=cortex-m3 CFLAGS = -mcpu=$(MCU) -mthumb CFLAGS += -Wall -Wextra -Wpedantic #CFLAGS += -Wmissing-prototypes -Wstrict-prototypes CFLAGS += -DSTM32F10X_MD CFLAGS += -DUSE_STDPERIPH_DRIVER CFLAGS += --specs=nano.specs CFLAGS += --specs=nosys.specs INCLUDE = -IUser INCLUDE += -ILibraries\STM32F10x_StdPeriph_Driver\inc INCLUDE += -ILibraries\CMSIS INCLUDE += -Iinterrupt INCLUDE += -IAPP LDSCRIPT = STM32F103C8_FLASH.ld LDFLAGS = -mcpu=$(MCU) -mthumb LDFLAGS += --specs=nano.specs LDFLAGS += --specs=nosys.specs LDFLAGS += -T$(LDSCRIPT) -Wl,--gc-sections LDFLAGS += -Wl,--print-memory-usage LDFLAGS += -Wl,-Map=Build/project.map all : $(TARGET).elf $(TARGET).bin $(TARGET).hex $(TARGET).elf: $(OBJS) @echo Linking... $(CC) $(LDFLAGS) -o $@ $^ @echo Size info: $(SIZE) $@ %.o: %.c @echo Compiling $<... $(CC) $(CFLAGS) $(INCLUDE) -c -o $@ $< %.o: %.s @echo Assembling $<... $(CC) $(CFLAGS) -c -o $@ $< $(TARGET).bin: $(TARGET).elf $(OBJCOPY) -O binary $< $@ $(TARGET).hex: $(TARGET).elf $(OBJCOPY) -O ihex $< $@ clean: rm -rf Build find . -name "*.o" -type f -delete find . -name "*.d" -type f -delete flash: $(TARGET).elf openocd -f interface/stlink.cfg -f target/stm32f1x.cfg \ -c "program $< verify reset exit" clean: -del /q $(subst /,\,$(OBJS)) 2>nul -del /q $(TARGET).elf $(TARGET).bin $(TARGET).hex $(TARGET).map 2>nul flash: $(TARGET).elf openocd -f interface/stlink.cfg -f target/stm32f1x.cfg -c "program $< verify reset exit" .PHONY: all clean flash”“PS C:\Users\13336\Desktop\test\vscode_stm32\model_02> mingw32-make all makefile:87: warning: overriding recipe for target 'flash' makefile:79: warning: ignoring old recipe for target 'flash' Assembling Libraries/CMSIS/startup_stm32f10x_md.s... arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Wall -Wextra -Wpedantic -DSTM32F10X_MD -DUSE_STDPERIPH_DRIVER --specs=nano.specs --specs=nosys.specs -c -o Libraries/CMSIS/startup_stm32f10x_md.o Libraries/CMSIS/startup_stm32f10x_md.s Libraries/CMSIS/startup_stm32f10x_md.s: Assembler messages: Libraries/CMSIS/startup_stm32f10x_md.s:1: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:2: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:3: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:4: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:5: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:6: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:7: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:8: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:9: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:10: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:11: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:12: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:13: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:14: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:15: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:16: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:17: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:18: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:19: Error: bad instruction `the PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS' Libraries/CMSIS/startup_stm32f10x_md.s:20: Error: bad instruction `with CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.' Libraries/CMSIS/startup_stm32f10x_md.s:21: Error: bad instruction `as A RESULT,STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,' Libraries/CMSIS/startup_stm32f10x_md.s:22: Error: bad instruction `indirect OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE' Libraries/CMSIS/startup_stm32f10x_md.s:23: Error: bad instruction `content OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING' Libraries/CMSIS/startup_stm32f10x_md.s:24: Error: bad instruction `information CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.' Libraries/CMSIS/startup_stm32f10x_md.s:25: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:27: Error: bad instruction `amount of memory(in bytes)allocated for Stack' Libraries/CMSIS/startup_stm32f10x_md.s:28: Error: bad instruction `tailor this value to your application needs' Libraries/CMSIS/startup_stm32f10x_md.s:29: Error: junk at end of line, first unrecognized character is `<' Libraries/CMSIS/startup_stm32f10x_md.s:30: Error: junk at end of line, first unrecognized character is `<' Libraries/CMSIS/startup_stm32f10x_md.s:31: Error: junk at end of line, first unrecognized character is `<' Libraries/CMSIS/startup_stm32f10x_md.s:33: Error: bad instruction `stack_size EQU 0x00000400' Libraries/CMSIS/startup_stm32f10x_md.s:35: Error: bad instruction `area STACK,NOINIT,READWRITE,ALIGN=3' Libraries/CMSIS/startup_stm32f10x_md.s:36: Error: bad instruction `stack_mem SPACE Stack_Size' Libraries/CMSIS/startup_stm32f10x_md.s:37: Error: bad instruction `__initial_sp' Libraries/CMSIS/startup_stm32f10x_md.s:40: Error: junk at end of line, first unrecognized character is `<' Libraries/CMSIS/startup_stm32f10x_md.s:41: Error: junk at end of line, first unrecognized character is `<' Libraries/CMSIS/startup_stm32f10x_md.s:42: Error: junk at end of line, first unrecognized character is `<' Libraries/CMSIS/startup_stm32f10x_md.s:44: Error: bad instruction `heap_size EQU 0x00000200' Libraries/CMSIS/startup_stm32f10x_md.s:46: Error: bad instruction `area HEAP,NOINIT,READWRITE,ALIGN=3' Libraries/CMSIS/startup_stm32f10x_md.s:47: Error: bad instruction `__heap_base' Libraries/CMSIS/startup_stm32f10x_md.s:48: Error: bad instruction `heap_mem SPACE Heap_Size' Libraries/CMSIS/startup_stm32f10x_md.s:49: Error: bad instruction `__heap_limit' Libraries/CMSIS/startup_stm32f10x_md.s:51: Error: bad instruction `preserve8' Libraries/CMSIS/startup_stm32f10x_md.s:52: Error: bad instruction `thumb' Libraries/CMSIS/startup_stm32f10x_md.s:55: Error: bad instruction `vector Table Mapped to Address 0 at Reset' Libraries/CMSIS/startup_stm32f10x_md.s:56: Error: bad instruction `area RESET,DATA,READONLY' Libraries/CMSIS/startup_stm32f10x_md.s:57: Error: bad instruction `export __Vectors' Libraries/CMSIS/startup_stm32f10x_md.s:58: Error: bad instruction `export __Vectors_End' Libraries/CMSIS/startup_stm32f10x_md.s:59: Error: bad instruction `export __Vectors_Size' Libraries/CMSIS/startup_stm32f10x_md.s:61: Error: bad instruction `__vectors DCD __initial_sp' Libraries/CMSIS/startup_stm32f10x_md.s:61: Error: bad instruction `top of Stack' Libraries/CMSIS/startup_stm32f10x_md.s:62: Error: bad instruction `dcd Reset_Handler' Libraries/CMSIS/startup_stm32f10x_md.s:62: Error: bad instruction `reset Handler' Libraries/CMSIS/startup_stm32f10x_md.s:63: Error: bad instruction `dcd NMI_Handler' Libraries/CMSIS/startup_stm32f10x_md.s:63: Error: bad instruction `nmi Handler' Libraries/CMSIS/startup_stm32f10x_md.s:64: Error: bad instruction `dcd HardFault_Handler' Libraries/CMSIS/startup_stm32f10x_md.s:64: Error: bad instruction `hard Fault Handler' Libraries/CMSIS/startup_stm32f10x_md.s:65: Error: bad instruction `dcd MemManage_Handler' Libraries/CMSIS/startup_stm32f10x_md.s:65: Error: bad instruction `mpu Fault Handler' Libraries/CMSIS/startup_stm32f10x_md.s:66: Error: bad instruction `dcd BusFault_Handler' Libraries/CMSIS/startup_stm32f10x_md.s:66: Error: bad instruction `bus Fault Handler' Libraries/CMSIS/startup_stm32f10x_md.s:67: Error: bad instruction `dcd UsageFault_Handler' Libraries/CMSIS/startup_stm32f10x_md.s:67: Error: bad instruction `usage Fault Handler' Libraries/CMSIS/startup_stm32f10x_md.s:68: Error: bad instruction `dcd 0' Libraries/CMSIS/startup_stm32f10x_md.s:68: Error: bad instruction `reserved' Libraries/CMSIS/startup_stm32f10x_md.s:69: Error: bad instruction `dcd 0' Libraries/CMSIS/startup_stm32f10x_md.s:69: Error: bad instruction `reserved' Libraries/CMSIS/startup_stm32f10x_md.s:70: Error: bad instruction `dcd 0' Libraries/CMSIS/startup_stm32f10x_md.s:70: Error: bad instruction `reserved' Libraries/CMSIS/startup_stm32f10x_md.s:71: Error: bad instruction `dcd 0' Libraries/CMSIS/startup_stm32f10x_md.s:71: Error: bad instruction `reserved' Libraries/CMSIS/startup_stm32f10x_md.s:72: Error: bad instruction `dcd SVC_Handler' Libraries/CMSIS/startup_stm32f10x_md.s:72: Error: bad instruction `svcall Handler' Libraries/CMSIS/startup_stm32f10x_md.s:73: Error: bad instruction `dcd DebugMon_Handler' Libraries/CMSIS/startup_stm32f10x_md.s:73: Error: bad instruction `debug Monitor Handler' Libraries/CMSIS/startup_stm32f10x_md.s:74: Error: bad instruction `dcd 0' Libraries/CMSIS/startup_stm32f10x_md.s:74: Error: bad instruction `reserved' Libraries/CMSIS/startup_stm32f10x_md.s:75: Error: bad instruction `dcd PendSV_Handler' Libraries/CMSIS/startup_stm32f10x_md.s:75: Error: bad instruction `pendsv Handler' Libraries/CMSIS/startup_stm32f10x_md.s:76: Error: bad instruction `dcd SysTick_Handler' Libraries/CMSIS/startup_stm32f10x_md.s:76: Error: bad instruction `systick Handler' Libraries/CMSIS/startup_stm32f10x_md.s:78: Error: bad instruction `external Interrupts' Libraries/CMSIS/startup_stm32f10x_md.s:79: Error: bad instruction `dcd WWDG_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:79: Error: bad instruction `window Watchdog' Libraries/CMSIS/startup_stm32f10x_md.s:80: Error: bad instruction `dcd PVD_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:80: Error: bad instruction `pvd through EXTI Line detect' Libraries/CMSIS/startup_stm32f10x_md.s:81: Error: bad instruction `dcd TAMPER_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:81: Error: bad instruction `tamper' Libraries/CMSIS/startup_stm32f10x_md.s:82: Error: bad instruction `dcd RTC_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:82: Error: bad instruction `rtc' Libraries/CMSIS/startup_stm32f10x_md.s:83: Error: bad instruction `dcd FLASH_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:83: Error: bad instruction `flash' Libraries/CMSIS/startup_stm32f10x_md.s:84: Error: bad instruction `dcd RCC_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:84: Error: bad instruction `rcc' Libraries/CMSIS/startup_stm32f10x_md.s:85: Error: bad instruction `dcd EXTI0_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:85: Error: bad instruction `exti Line 0' Libraries/CMSIS/startup_stm32f10x_md.s:86: Error: bad instruction `dcd EXTI1_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:86: Error: bad instruction `exti Line 1' Libraries/CMSIS/startup_stm32f10x_md.s:87: Error: bad instruction `dcd EXTI2_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:87: Error: bad instruction `exti Line 2' Libraries/CMSIS/startup_stm32f10x_md.s:88: Error: bad instruction `dcd EXTI3_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:88: Error: bad instruction `exti Line 3' Libraries/CMSIS/startup_stm32f10x_md.s:89: Error: bad instruction `dcd EXTI4_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:89: Error: bad instruction `exti Line 4' Libraries/CMSIS/startup_stm32f10x_md.s:90: Error: bad instruction `dcd DMA1_Channel1_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:90: Error: bad instruction `dma1 Channel 1' Libraries/CMSIS/startup_stm32f10x_md.s:91: Error: bad instruction `dcd DMA1_Channel2_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:91: Error: bad instruction `dma1 Channel 2' Libraries/CMSIS/startup_stm32f10x_md.s:92: Error: bad instruction `dcd DMA1_Channel3_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:92: Error: bad instruction `dma1 Channel 3' Libraries/CMSIS/startup_stm32f10x_md.s:93: Error: bad instruction `dcd DMA1_Channel4_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:93: Error: bad instruction `dma1 Channel 4' Libraries/CMSIS/startup_stm32f10x_md.s:94: Error: bad instruction `dcd DMA1_Channel5_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:94: Error: bad instruction `dma1 Channel 5' Libraries/CMSIS/startup_stm32f10x_md.s:95: Error: bad instruction `dcd DMA1_Channel6_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:95: Error: bad instruction `dma1 Channel 6' Libraries/CMSIS/startup_stm32f10x_md.s:96: Error: bad instruction `dcd DMA1_Channel7_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:96: Error: bad instruction `dma1 Channel 7' Libraries/CMSIS/startup_stm32f10x_md.s:97: Error: bad instruction `dcd ADC1_2_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:97: Error: bad instruction `adc1_2' Libraries/CMSIS/startup_stm32f10x_md.s:98: Error: bad instruction `dcd USB_HP_CAN1_TX_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:98: Error: bad instruction `usb High Priority or CAN1 TX' Libraries/CMSIS/startup_stm32f10x_md.s:99: Error: bad instruction `dcd USB_LP_CAN1_RX0_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:99: Error: bad instruction `usb Low Priority or CAN1 RX0' Libraries/CMSIS/startup_stm32f10x_md.s:100: Error: bad instruction `dcd CAN1_RX1_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:100: Error: bad instruction `can1 RX1' Libraries/CMSIS/startup_stm32f10x_md.s:101: Error: bad instruction `dcd CAN1_SCE_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:101: Error: bad instruction `can1 SCE' Libraries/CMSIS/startup_stm32f10x_md.s:102: Error: bad instruction `dcd EXTI9_5_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:102: Error: bad instruction `exti Line 9..5' Libraries/CMSIS/startup_stm32f10x_md.s:103: Error: bad instruction `dcd TIM1_BRK_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:103: Error: bad instruction `tim1 Break' Libraries/CMSIS/startup_stm32f10x_md.s:104: Error: bad instruction `dcd TIM1_UP_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:104: Error: bad instruction `tim1 Update' Libraries/CMSIS/startup_stm32f10x_md.s:105: Error: bad instruction `dcd TIM1_TRG_COM_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:105: Error: bad instruction `tim1 Trigger and Commutation' Libraries/CMSIS/startup_stm32f10x_md.s:106: Error: bad instruction `dcd TIM1_CC_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:106: Error: bad instruction `tim1 Capture Compare' Libraries/CMSIS/startup_stm32f10x_md.s:107: Error: bad instruction `dcd TIM2_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:107: Error: bad instruction `tim2' Libraries/CMSIS/startup_stm32f10x_md.s:108: Error: bad instruction `dcd TIM3_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:108: Error: bad instruction `tim3' Libraries/CMSIS/startup_stm32f10x_md.s:109: Error: bad instruction `dcd TIM4_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:109: Error: bad instruction `tim4' Libraries/CMSIS/startup_stm32f10x_md.s:110: Error: bad instruction `dcd I2C1_EV_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:110: Error: bad instruction `i2c1 Event' Libraries/CMSIS/startup_stm32f10x_md.s:111: Error: bad instruction `dcd I2C1_ER_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:111: Error: bad instruction `i2c1 Error' Libraries/CMSIS/startup_stm32f10x_md.s:112: Error: bad instruction `dcd I2C2_EV_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:112: Error: bad instruction `i2c2 Event' Libraries/CMSIS/startup_stm32f10x_md.s:113: Error: bad instruction `dcd I2C2_ER_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:113: Error: bad instruction `i2c2 Error' Libraries/CMSIS/startup_stm32f10x_md.s:114: Error: bad instruction `dcd SPI1_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:114: Error: bad instruction `spi1' Libraries/CMSIS/startup_stm32f10x_md.s:115: Error: bad instruction `dcd SPI2_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:115: Error: bad instruction `spi2' Libraries/CMSIS/startup_stm32f10x_md.s:116: Error: bad instruction `dcd USART1_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:116: Error: bad instruction `usart1' Libraries/CMSIS/startup_stm32f10x_md.s:117: Error: bad instruction `dcd USART2_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:117: Error: bad instruction `usart2' Libraries/CMSIS/startup_stm32f10x_md.s:118: Error: bad instruction `dcd USART3_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:118: Error: bad instruction `usart3' Libraries/CMSIS/startup_stm32f10x_md.s:119: Error: bad instruction `dcd EXTI15_10_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:119: Error: bad instruction `exti Line 15..10' Libraries/CMSIS/startup_stm32f10x_md.s:120: Error: bad instruction `dcd RTCAlarm_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:120: Error: bad instruction `rtc Alarm through EXTI Line' Libraries/CMSIS/startup_stm32f10x_md.s:121: Error: bad instruction `dcd USBWakeUp_IRQHandler' Libraries/CMSIS/startup_stm32f10x_md.s:121: Error: bad instruction `usb Wakeup from suspend' Libraries/CMSIS/startup_stm32f10x_md.s:122: Error: bad instruction `__vectors_end' Libraries/CMSIS/startup_stm32f10x_md.s:124: Error: bad instruction `__vectors_size EQU __Vectors_End-__Vectors' Libraries/CMSIS/startup_stm32f10x_md.s:126: Error: bad instruction `area |.text|,CODE,READONLY' Libraries/CMSIS/startup_stm32f10x_md.s:128: Error: bad instruction `reset handler' Libraries/CMSIS/startup_stm32f10x_md.s:129: Error: bad instruction `reset_handler PROC' Libraries/CMSIS/startup_stm32f10x_md.s:130: Error: bad instruction `export Reset_Handler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:131: Error: bad instruction `import __main' Libraries/CMSIS/startup_stm32f10x_md.s:132: Error: bad instruction `import SystemInit' Libraries/CMSIS/startup_stm32f10x_md.s:137: Error: bad instruction `endp' Libraries/CMSIS/startup_stm32f10x_md.s:139: Error: bad instruction `dummy Exception Handlers(infinite loops which can be modified)' Libraries/CMSIS/startup_stm32f10x_md.s:141: Error: bad instruction `nmi_handler PROC' Libraries/CMSIS/startup_stm32f10x_md.s:142: Error: bad instruction `export NMI_Handler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:144: Error: bad instruction `endp' Libraries/CMSIS/startup_stm32f10x_md.s:145: Warning: stray `\' Libraries/CMSIS/startup_stm32f10x_md.s:145: Error: bad instruction `hardfault_handler\' Libraries/CMSIS/startup_stm32f10x_md.s:146: Error: bad instruction `proc' Libraries/CMSIS/startup_stm32f10x_md.s:147: Error: bad instruction `export HardFault_Handler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:149: Error: bad instruction `endp' Libraries/CMSIS/startup_stm32f10x_md.s:150: Warning: stray `\' Libraries/CMSIS/startup_stm32f10x_md.s:150: Error: bad instruction `memmanage_handler\' Libraries/CMSIS/startup_stm32f10x_md.s:151: Error: bad instruction `proc' Libraries/CMSIS/startup_stm32f10x_md.s:152: Error: bad instruction `export MemManage_Handler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:154: Error: bad instruction `endp' Libraries/CMSIS/startup_stm32f10x_md.s:155: Warning: stray `\' Libraries/CMSIS/startup_stm32f10x_md.s:155: Error: bad instruction `busfault_handler\' Libraries/CMSIS/startup_stm32f10x_md.s:156: Error: bad instruction `proc' Libraries/CMSIS/startup_stm32f10x_md.s:157: Error: bad instruction `export BusFault_Handler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:159: Error: bad instruction `endp' Libraries/CMSIS/startup_stm32f10x_md.s:160: Warning: stray `\' Libraries/CMSIS/startup_stm32f10x_md.s:160: Error: bad instruction `usagefault_handler\' Libraries/CMSIS/startup_stm32f10x_md.s:161: Error: bad instruction `proc' Libraries/CMSIS/startup_stm32f10x_md.s:162: Error: bad instruction `export UsageFault_Handler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:164: Error: bad instruction `endp' Libraries/CMSIS/startup_stm32f10x_md.s:165: Error: bad instruction `svc_handler PROC' Libraries/CMSIS/startup_stm32f10x_md.s:166: Error: bad instruction `export SVC_Handler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:168: Error: bad instruction `endp' Libraries/CMSIS/startup_stm32f10x_md.s:169: Warning: stray `\' Libraries/CMSIS/startup_stm32f10x_md.s:169: Error: bad instruction `debugmon_handler\' Libraries/CMSIS/startup_stm32f10x_md.s:170: Error: bad instruction `proc' Libraries/CMSIS/startup_stm32f10x_md.s:171: Error: bad instruction `export DebugMon_Handler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:173: Error: bad instruction `endp' Libraries/CMSIS/startup_stm32f10x_md.s:174: Error: bad instruction `pendsv_handler PROC' Libraries/CMSIS/startup_stm32f10x_md.s:175: Error: bad instruction `export PendSV_Handler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:177: Error: bad instruction `endp' Libraries/CMSIS/startup_stm32f10x_md.s:178: Error: bad instruction `systick_handler PROC' Libraries/CMSIS/startup_stm32f10x_md.s:179: Error: bad instruction `export SysTick_Handler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:181: Error: bad instruction `endp' Libraries/CMSIS/startup_stm32f10x_md.s:183: Error: bad instruction `default_handler PROC' Libraries/CMSIS/startup_stm32f10x_md.s:185: Error: bad instruction `export WWDG_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:186: Error: bad instruction `export PVD_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:187: Error: bad instruction `export TAMPER_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:188: Error: bad instruction `export RTC_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:189: Error: bad instruction `export FLASH_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:190: Error: bad instruction `export RCC_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:191: Error: bad instruction `export EXTI0_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:192: Error: bad instruction `export EXTI1_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:193: Error: bad instruction `export EXTI2_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:194: Error: bad instruction `export EXTI3_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:195: Error: bad instruction `export EXTI4_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:196: Error: bad instruction `export DMA1_Channel1_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:197: Error: bad instruction `export DMA1_Channel2_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:198: Error: bad instruction `export DMA1_Channel3_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:199: Error: bad instruction `export DMA1_Channel4_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:200: Error: bad instruction `export DMA1_Channel5_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:201: Error: bad instruction `export DMA1_Channel6_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:202: Error: bad instruction `export DMA1_Channel7_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:203: Error: bad instruction `export ADC1_2_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:204: Error: bad instruction `export USB_HP_CAN1_TX_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:205: Error: bad instruction `export USB_LP_CAN1_RX0_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:206: Error: bad instruction `export CAN1_RX1_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:207: Error: bad instruction `export CAN1_SCE_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:208: Error: bad instruction `export EXTI9_5_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:209: Error: bad instruction `export TIM1_BRK_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:210: Error: bad instruction `export TIM1_UP_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:211: Error: bad instruction `export TIM1_TRG_COM_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:212: Error: bad instruction `export TIM1_CC_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:213: Error: bad instruction `export TIM2_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:214: Error: bad instruction `export TIM3_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:215: Error: bad instruction `export TIM4_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:216: Error: bad instruction `export I2C1_EV_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:217: Error: bad instruction `export I2C1_ER_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:218: Error: bad instruction `export I2C2_EV_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:219: Error: bad instruction `export I2C2_ER_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:220: Error: bad instruction `export SPI1_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:221: Error: bad instruction `export SPI2_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:222: Error: bad instruction `export USART1_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:223: Error: bad instruction `export USART2_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:224: Error: bad instruction `export USART3_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:225: Error: bad instruction `export EXTI15_10_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:226: Error: bad instruction `export RTCAlarm_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:227: Error: bad instruction `export USBWakeUp_IRQHandler [WEAK]' Libraries/CMSIS/startup_stm32f10x_md.s:229: Error: bad instruction `wwdg_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:230: Error: bad instruction `pvd_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:231: Error: bad instruction `tamper_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:232: Error: bad instruction `rtc_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:233: Error: bad instruction `flash_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:234: Error: bad instruction `rcc_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:235: Error: bad instruction `exti0_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:236: Error: bad instruction `exti1_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:237: Error: bad instruction `exti2_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:238: Error: bad instruction `exti3_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:239: Error: bad instruction `exti4_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:240: Error: bad instruction `dma1_channel1_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:241: Error: bad instruction `dma1_channel2_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:242: Error: bad instruction `dma1_channel3_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:243: Error: bad instruction `dma1_channel4_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:244: Error: bad instruction `dma1_channel5_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:245: Error: bad instruction `dma1_channel6_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:246: Error: bad instruction `dma1_channel7_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:247: Error: bad instruction `adc1_2_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:248: Error: bad instruction `usb_hp_can1_tx_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:249: Error: bad instruction `usb_lp_can1_rx0_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:250: Error: bad instruction `can1_rx1_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:251: Error: bad instruction `can1_sce_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:252: Error: bad instruction `exti9_5_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:253: Error: bad instruction `tim1_brk_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:254: Error: bad instruction `tim1_up_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:255: Error: bad instruction `tim1_trg_com_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:256: Error: bad instruction `tim1_cc_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:257: Error: bad instruction `tim2_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:258: Error: bad instruction `tim3_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:259: Error: bad instruction `tim4_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:260: Error: bad instruction `i2c1_ev_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:261: Error: bad instruction `i2c1_er_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:262: Error: bad instruction `i2c2_ev_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:263: Error: bad instruction `i2c2_er_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:264: Error: bad instruction `spi1_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:265: Error: bad instruction `spi2_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:266: Error: bad instruction `usart1_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:267: Error: bad instruction `usart2_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:268: Error: bad instruction `usart3_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:269: Error: bad instruction `exti15_10_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:270: Error: bad instruction `rtcalarm_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:271: Error: bad instruction `usbwakeup_irqhandler' Libraries/CMSIS/startup_stm32f10x_md.s:275: Error: bad instruction `endp' Libraries/CMSIS/startup_stm32f10x_md.s:277: Error: bad instruction `align' Libraries/CMSIS/startup_stm32f10x_md.s:279: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:280: Error: bad instruction `user Stack and Heap initialization' Libraries/CMSIS/startup_stm32f10x_md.s:281: Error: junk at end of line, first unrecognized character is `*' Libraries/CMSIS/startup_stm32f10x_md.s:282: Error: bad instruction `__microlib' Libraries/CMSIS/startup_stm32f10x_md.s:284: Error: bad instruction `export __initial_sp' Libraries/CMSIS/startup_stm32f10x_md.s:285: Error: bad instruction `export __heap_base' Libraries/CMSIS/startup_stm32f10x_md.s:286: Error: bad instruction `export __heap_limit' Libraries/CMSIS/startup_stm32f10x_md.s:288: Error: bad instruction `else' Libraries/CMSIS/startup_stm32f10x_md.s:290: Error: bad instruction `import __use_two_region_memory' Libraries/CMSIS/startup_stm32f10x_md.s:291: Error: bad instruction `export __user_initial_stackheap' Libraries/CMSIS/startup_stm32f10x_md.s:293: Error: bad instruction `__user_initial_stackheap' Libraries/CMSIS/startup_stm32f10x_md.s:296: Error: syntax error -- `ldr R1,=(Stack_Mem+Stack_Size)' Libraries/CMSIS/startup_stm32f10x_md.s:297: Error: syntax error -- `ldr R2,=(Heap_Mem+Heap_Size)' Libraries/CMSIS/startup_stm32f10x_md.s:301: Error: bad instruction `align' Libraries/CMSIS/startup_stm32f10x_md.s:303: Error: bad instruction `endif' Libraries/CMSIS/startup_stm32f10x_md.s:305: Error: bad instruction `end' Libraries/CMSIS/startup_stm32f10x_md.s:307: Error: junk at end of line, first unrecognized character is `*' mingw32-make: *** [makefile:65: Libraries/CMSIS/startup_stm32f10x_md.o] Error 1”这是什么问题
09-29
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值