Moin! Ich habe das ET-STM32 Evalboard mit dem STM32F103RBT6 drauf. Ich schaffe es leider nicht mein erstes Programm zu starten :( Nachdem ich mir die Eclipse-Entwicklungsumgebung eingerichtet habe, kann ich mittlerweile den Code erfolgreich kompilieren und es wird auch eine hex-Datei erstellt. Da ich keinen JTAG-Adapter habe, verbinde ich mich ganz normal über RS232 mit dem Board. Vorher stelle ich BOOT0 natürlich entsprechend ein. Dann kann ich mich ohne Probleme verbinden und auch das hex-File übertragen. Auch die Verifikation hinterher ist erfolgreich. Wenn ich BOOT0 dann wieder umschalte und das Board resete, müsste doch eigentlich mein Programm ausgeführt werden, oder? Doch das geschieht leider nicht :( Stattdessen leuchten, wie auch wenn der Bootlader gestartet wurde, alle LEDs. Davon habe ich im Manual nichts gefunden. Hat jemand auch dieses Board und vielleicht eine Idee, worans hapern könnte? Vielen, vielen Dank für Eure Hilfe!
Du musst deine Assembler-Datei umbenennen, zumindest im rar-Archiv hat die Datei ein Endung mit kleinem s. Eclipse ignoriert allerdings solche Assembler-Dateien. Richtig heist die Datei also startup_stm32f10x_hd.S
Ja das hatte ich auch gelesen und versucht. Aber dann geht das nicht mehr zu kompilieren: **** Build of configuration Build for project ET-STM32F103_LED_TEST **** cs-make all 'Building file: ../startup_stm32f10x_hd.S' 'Invoking: ARM Sourcery Windows GCC Assembler' arm-none-eabi-gcc -x assembler-with-cpp -Wall -Wa,-adhlns="startup_stm32f10x_hd.o.lst" -c -fmessage-length=0 -MMD -MP -MF"startup_stm32f10x_hd.d" -MT"startup_stm32f10x_hd.d" -mcpu=cortex-m3 -mthumb -g3 -gdwarf-2 -o "startup_stm32f10x_hd.o" "../startup_stm32f10x_hd.S" ../startup_stm32f10x_hd.S: Assembler messages: ../startup_stm32f10x_hd.S:1: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:2: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:3: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:4: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:5: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:6: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:7: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:8: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:9: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:10: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:11: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:12: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:13: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:14: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:15: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:16: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:17: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:18: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:19: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:20: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:21: Error: bad instruction `the PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS' ../startup_stm32f10x_hd.S:22: Error: bad instruction `with CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.' ../startup_stm32f10x_hd.S:23: Error: bad instruction `as A RESULT,STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,' ../startup_stm32f10x_hd.S:24: Error: bad instruction `indirect OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE' ../startup_stm32f10x_hd.S:25: Error: bad instruction `content OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING' ../startup_stm32f10x_hd.S:26: Error: bad instruction `information CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.' ../startup_stm32f10x_hd.S:27: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:29: Error: bad instruction `amount of memory(in bytes)allocated for Stack' ../startup_stm32f10x_hd.S:30: Error: bad instruction `tailor this value to your application needs' ../startup_stm32f10x_hd.S:31: Error: junk at end of line, first unrecognized character is `<' ../startup_stm32f10x_hd.S:32: Error: junk at end of line, first unrecognized character is `<' ../startup_stm32f10x_hd.S:33: Error: junk at end of line, first unrecognized character is `<' ../startup_stm32f10x_hd.S:35: Error: bad instruction `stack_size EQU 0x00000400' ../startup_stm32f10x_hd.S:37: Error: bad instruction `area STACK,NOINIT,READWRITE,ALIGN=3' ../startup_stm32f10x_hd.S:38: Error: bad instruction `stack_mem SPACE Stack_Size' ../startup_stm32f10x_hd.S:39: Error: bad instruction `__initial_sp' ../startup_stm32f10x_hd.S:41: Error: junk at end of line, first unrecognized character is `<' ../startup_stm32f10x_hd.S:42: Error: junk at end of line, first unrecognized character is `<' ../startup_stm32f10x_hd.S:43: Error: junk at end of line, first unrecognized character is `<' ../startup_stm32f10x_hd.S:45: Error: bad instruction `heap_size EQU 0x00000200' ../startup_stm32f10x_hd.S:47: Error: bad instruction `area HEAP,NOINIT,READWRITE,ALIGN=3' ../startup_stm32f10x_hd.S:48: Error: bad instruction `__heap_base' ../startup_stm32f10x_hd.S:49: Error: bad instruction `heap_mem SPACE Heap_Size' ../startup_stm32f10x_hd.S:50: Error: bad instruction `__heap_limit' ../startup_stm32f10x_hd.S:52: Error: bad instruction `preserve8' ../startup_stm32f10x_hd.S:53: Error: bad instruction `thumb' ../startup_stm32f10x_hd.S:56: Error: bad instruction `vector Table Mapped to Address 0 at Reset' ../startup_stm32f10x_hd.S:57: Error: bad instruction `area RESET,DATA,READONLY' ../startup_stm32f10x_hd.S:58: Error: bad instruction `export __Vectors' ../startup_stm32f10x_hd.S:59: Error: bad instruction `export __Vectors_End' ../startup_stm32f10x_hd.S:60: Error: bad instruction `export __Vectors_Size' ../startup_stm32f10x_hd.S:62: Error: bad instruction `__vectors DCD __initial_sp' ../startup_stm32f10x_hd.S:62: Error: bad instruction `top of Stack' ../startup_stm32f10x_hd.S:63: Error: bad instruction `dcd Reset_Handler' ../startup_stm32f10x_hd.S:63: Error: bad instruction `reset Handler' ../startup_stm32f10x_hd.S:64: Error: bad instruction `dcd NMI_Handler' ../startup_stm32f10x_hd.S:64: Error: bad instruction `nmi Handler' ../startup_stm32f10x_hd.S:65: Error: bad instruction `dcd HardFault_Handler' ../startup_stm32f10x_hd.S:65: Error: bad instruction `hard Fault Handler' ../startup_stm32f10x_hd.S:66: Error: bad instruction `dcd MemManage_Handler' ../startup_stm32f10x_hd.S:66: Error: bad instruction `mpu Fault Handler' ../startup_stm32f10x_hd.S:67: Error: bad instruction `dcd BusFault_Handler' ../startup_stm32f10x_hd.S:67: Error: bad instruction `bus Fault Handler' ../startup_stm32f10x_hd.S:68: Error: bad instruction `dcd UsageFault_Handler' ../startup_stm32f10x_hd.S:68: Error: bad instruction `usage Fault Handler' ../startup_stm32f10x_hd.S:69: Error: bad instruction `dcd 0' ../startup_stm32f10x_hd.S:69: Error: bad instruction `reserved' ../startup_stm32f10x_hd.S:70: Error: bad instruction `dcd 0' ../startup_stm32f10x_hd.S:70: Error: bad instruction `reserved' ../startup_stm32f10x_hd.S:71: Error: bad instruction `dcd 0' ../startup_stm32f10x_hd.S:71: Error: bad instruction `reserved' ../startup_stm32f10x_hd.S:72: Error: bad instruction `dcd 0' ../startup_stm32f10x_hd.S:72: Error: bad instruction `reserved' ../startup_stm32f10x_hd.S:73: Error: bad instruction `dcd SVC_Handler' ../startup_stm32f10x_hd.S:73: Error: bad instruction `svcall Handler' ../startup_stm32f10x_hd.S:74: Error: bad instruction `dcd DebugMon_Handler' ../startup_stm32f10x_hd.S:74: Error: bad instruction `debug Monitor Handler' ../startup_stm32f10x_hd.S:75: Error: bad instruction `dcd 0' ../startup_stm32f10x_hd.S:75: Error: bad instruction `reserved' ../startup_stm32f10x_hd.S:76: Error: bad instruction `dcd PendSV_Handler' ../startup_stm32f10x_hd.S:76: Error: bad instruction `pendsv Handler' ../startup_stm32f10x_hd.S:77: Error: bad instruction `dcd SysTick_Handler' ../startup_stm32f10x_hd.S:77: Error: bad instruction `systick Handler' ../startup_stm32f10x_hd.S:79: Error: bad instruction `external Interrupts' ../startup_stm32f10x_hd.S:80: Error: bad instruction `dcd WWDG_IRQHandler' ../startup_stm32f10x_hd.S:80: Error: bad instruction `window Watchdog' ../startup_stm32f10x_hd.S:81: Error: bad instruction `dcd PVD_IRQHandler' ../startup_stm32f10x_hd.S:81: Error: bad instruction `pvd through EXTI Line detect' ../startup_stm32f10x_hd.S:82: Error: bad instruction `dcd TAMPER_IRQHandler' ../startup_stm32f10x_hd.S:82: Error: bad instruction `tamper' ../startup_stm32f10x_hd.S:83: Error: bad instruction `dcd RTC_IRQHandler' ../startup_stm32f10x_hd.S:83: Error: bad instruction `rtc' ../startup_stm32f10x_hd.S:84: Error: bad instruction `dcd FLASH_IRQHandler' ../startup_stm32f10x_hd.S:84: Error: bad instruction `flash' ../startup_stm32f10x_hd.S:85: Error: bad instruction `dcd RCC_IRQHandler' ../startup_stm32f10x_hd.S:85: Error: bad instruction `rcc' ../startup_stm32f10x_hd.S:86: Error: bad instruction `dcd EXTI0_IRQHandler' ../startup_stm32f10x_hd.S:86: Error: bad instruction `exti Line 0' ../startup_stm32f10x_hd.S:87: Error: bad instruction `dcd EXTI1_IRQHandler' ../startup_stm32f10x_hd.S:87: Error: bad instruction `exti Line 1' ../startup_stm32f10x_hd.S:88: Error: bad instruction `dcd EXTI2_IRQHandler' ../startup_stm32f10x_hd.S:88: Error: bad instruction `exti Line 2' ../startup_stm32f10x_hd.S:89: Error: bad instruction `dcd EXTI3_IRQHandler' ../startup_stm32f10x_hd.S:89: Error: bad instruction `exti Line 3' ../startup_stm32f10x_hd.S:90: Error: bad instruction `dcd EXTI4_IRQHandler' ../startup_stm32f10x_hd.S:90: Error: bad instruction `exti Line 4' ../startup_stm32f10x_hd.S:91: Error: bad instruction `dcd DMA1_Channel1_IRQHandler' ../startup_stm32f10x_hd.S:91: Error: bad instruction `dma1 Channel 1' ../startup_stm32f10x_hd.S:92: Error: bad instruction `dcd DMA1_Channel2_IRQHandler' ../startup_stm32f10x_hd.S:92: Error: bad instruction `dma1 Channel 2' ../startup_stm32f10x_hd.S:93: Error: bad instruction `dcd DMA1_Channel3_IRQHandler' ../startup_stm32f10x_hd.S:93: Error: bad instruction `dma1 Channel 3' ../startup_stm32f10x_hd.S:94: Error: bad instruction `dcd DMA1_Channel4_IRQHandler' ../startup_stm32f10x_hd.S:94: Error: bad instruction `dma1 Channel 4' ../startup_stm32f10x_hd.S:95: Error: bad instruction `dcd DMA1_Channel5_IRQHandler' ../startup_stm32f10x_hd.S:95: Error: bad instruction `dma1 Channel 5' ../startup_stm32f10x_hd.S:96: Error: bad instruction `dcd DMA1_Channel6_IRQHandler' ../startup_stm32f10x_hd.S:96: Error: bad instruction `dma1 Channel 6' ../startup_stm32f10x_hd.S:97: Error: bad instruction `dcd DMA1_Channel7_IRQHandler' ../startup_stm32f10x_hd.S:97: Error: bad instruction `dma1 Channel 7' ../startup_stm32f10x_hd.S:98: Error: bad instruction `dcd ADC1_2_IRQHandler' ../startup_stm32f10x_hd.S:98: Error: bad instruction `adc1 &ADC2' ../startup_stm32f10x_hd.S:99: Error: bad instruction `dcd USB_HP_CAN1_TX_IRQHandler' ../startup_stm32f10x_hd.S:99: Error: bad instruction `usb High Priority or CAN1 TX' ../startup_stm32f10x_hd.S:100: Error: bad instruction `dcd USB_LP_CAN1_RX0_IRQHandler' ../startup_stm32f10x_hd.S:100: Error: bad instruction `usb Low Priority or CAN1 RX0' ../startup_stm32f10x_hd.S:101: Error: bad instruction `dcd CAN1_RX1_IRQHandler' ../startup_stm32f10x_hd.S:101: Error: bad instruction `can1 RX1' ../startup_stm32f10x_hd.S:102: Error: bad instruction `dcd CAN1_SCE_IRQHandler' ../startup_stm32f10x_hd.S:102: Error: bad instruction `can1 SCE' ../startup_stm32f10x_hd.S:103: Error: bad instruction `dcd EXTI9_5_IRQHandler' ../startup_stm32f10x_hd.S:103: Error: bad instruction `exti Line 9..5' ../startup_stm32f10x_hd.S:104: Error: bad instruction `dcd TIM1_BRK_IRQHandler' ../startup_stm32f10x_hd.S:104: Error: bad instruction `tim1 Break' ../startup_stm32f10x_hd.S:105: Error: bad instruction `dcd TIM1_UP_IRQHandler' ../startup_stm32f10x_hd.S:105: Error: bad instruction `tim1 Update' ../startup_stm32f10x_hd.S:106: Error: bad instruction `dcd TIM1_TRG_COM_IRQHandler' ../startup_stm32f10x_hd.S:106: Error: bad instruction `tim1 Trigger and Commutation' ../startup_stm32f10x_hd.S:107: Error: bad instruction `dcd TIM1_CC_IRQHandler' ../startup_stm32f10x_hd.S:107: Error: bad instruction `tim1 Capture Compare' ../startup_stm32f10x_hd.S:108: Error: bad instruction `dcd TIM2_IRQHandler' ../startup_stm32f10x_hd.S:108: Error: bad instruction `tim2' ../startup_stm32f10x_hd.S:109: Error: bad instruction `dcd TIM3_IRQHandler' ../startup_stm32f10x_hd.S:109: Error: bad instruction `tim3' ../startup_stm32f10x_hd.S:110: Error: bad instruction `dcd TIM4_IRQHandler' ../startup_stm32f10x_hd.S:110: Error: bad instruction `tim4' ../startup_stm32f10x_hd.S:111: Error: bad instruction `dcd I2C1_EV_IRQHandler' ../startup_stm32f10x_hd.S:111: Error: bad instruction `i2c1 Event' ../startup_stm32f10x_hd.S:112: Error: bad instruction `dcd I2C1_ER_IRQHandler' ../startup_stm32f10x_hd.S:112: Error: bad instruction `i2c1 Error' ../startup_stm32f10x_hd.S:113: Error: bad instruction `dcd I2C2_EV_IRQHandler' ../startup_stm32f10x_hd.S:113: Error: bad instruction `i2c2 Event' ../startup_stm32f10x_hd.S:114: Error: bad instruction `dcd I2C2_ER_IRQHandler' ../startup_stm32f10x_hd.S:114: Error: bad instruction `i2c2 Error' ../startup_stm32f10x_hd.S:115: Error: bad instruction `dcd SPI1_IRQHandler' ../startup_stm32f10x_hd.S:115: Error: bad instruction `spi1' ../startup_stm32f10x_hd.S:116: Error: bad instruction `dcd SPI2_IRQHandler' ../startup_stm32f10x_hd.S:116: Error: bad instruction `spi2' ../startup_stm32f10x_hd.S:117: Error: bad instruction `dcd USART1_IRQHandler' ../startup_stm32f10x_hd.S:117: Error: bad instruction `usart1' ../startup_stm32f10x_hd.S:118: Error: bad instruction `dcd USART2_IRQHandler' ../startup_stm32f10x_hd.S:118: Error: bad instruction `usart2' ../startup_stm32f10x_hd.S:119: Error: bad instruction `dcd USART3_IRQHandler' ../startup_stm32f10x_hd.S:119: Error: bad instruction `usart3' ../startup_stm32f10x_hd.S:120: Error: bad instruction `dcd EXTI15_10_IRQHandler' ../startup_stm32f10x_hd.S:120: Error: bad instruction `exti Line 15..10' ../startup_stm32f10x_hd.S:121: Error: bad instruction `dcd RTCAlarm_IRQHandler' ../startup_stm32f10x_hd.S:121: Error: bad instruction `rtc Alarm through EXTI Line' ../startup_stm32f10x_hd.S:122: Error: bad instruction `dcd USBWakeUp_IRQHandler' ../startup_stm32f10x_hd.S:122: Error: bad instruction `usb Wakeup from suspend' ../startup_stm32f10x_hd.S:123: Error: bad instruction `dcd TIM8_BRK_IRQHandler' ../startup_stm32f10x_hd.S:123: Error: bad instruction `tim8 Break' ../startup_stm32f10x_hd.S:124: Error: bad instruction `dcd TIM8_UP_IRQHandler' ../startup_stm32f10x_hd.S:124: Error: bad instruction `tim8 Update' ../startup_stm32f10x_hd.S:125: Error: bad instruction `dcd TIM8_TRG_COM_IRQHandler' ../startup_stm32f10x_hd.S:125: Error: bad instruction `tim8 Trigger and Commutation' ../startup_stm32f10x_hd.S:126: Error: bad instruction `dcd TIM8_CC_IRQHandler' ../startup_stm32f10x_hd.S:126: Error: bad instruction `tim8 Capture Compare' ../startup_stm32f10x_hd.S:127: Error: bad instruction `dcd ADC3_IRQHandler' ../startup_stm32f10x_hd.S:127: Error: bad instruction `adc3' ../startup_stm32f10x_hd.S:128: Error: bad instruction `dcd FSMC_IRQHandler' ../startup_stm32f10x_hd.S:128: Error: bad instruction `fsmc' ../startup_stm32f10x_hd.S:129: Error: bad instruction `dcd SDIO_IRQHandler' ../startup_stm32f10x_hd.S:129: Error: bad instruction `sdio' ../startup_stm32f10x_hd.S:130: Error: bad instruction `dcd TIM5_IRQHandler' ../startup_stm32f10x_hd.S:130: Error: bad instruction `tim5' ../startup_stm32f10x_hd.S:131: Error: bad instruction `dcd SPI3_IRQHandler' ../startup_stm32f10x_hd.S:131: Error: bad instruction `spi3' ../startup_stm32f10x_hd.S:132: Error: bad instruction `dcd UART4_IRQHandler' ../startup_stm32f10x_hd.S:132: Error: bad instruction `uart4' ../startup_stm32f10x_hd.S:133: Error: bad instruction `dcd UART5_IRQHandler' ../startup_stm32f10x_hd.S:133: Error: bad instruction `uart5' ../startup_stm32f10x_hd.S:134: Error: bad instruction `dcd TIM6_IRQHandler' ../startup_stm32f10x_hd.S:134: Error: bad instruction `tim6' ../startup_stm32f10x_hd.S:135: Error: bad instruction `dcd TIM7_IRQHandler' ../startup_stm32f10x_hd.S:135: Error: bad instruction `tim7' ../startup_stm32f10x_hd.S:136: Error: bad instruction `dcd DMA2_Channel1_IRQHandler' ../startup_stm32f10x_hd.S:136: Error: bad instruction `dma2 Channel1' ../startup_stm32f10x_hd.S:137: Error: bad instruction `dcd DMA2_Channel2_IRQHandler' ../startup_stm32f10x_hd.S:137: Error: bad instruction `dma2 Channel2' ../startup_stm32f10x_hd.S:138: Error: bad instruction `dcd DMA2_Channel3_IRQHandler' ../startup_stm32f10x_hd.S:138: Error: bad instruction `dma2 Channel3' ../startup_stm32f10x_hd.S:139: Error: bad instruction `dcd DMA2_Channel4_5_IRQHandler' ../startup_stm32f10x_hd.S:139: Error: bad instruction `dma2 Channel4&Channel5' ../startup_stm32f10x_hd.S:140: Error: bad instruction `__vectors_end' ../startup_stm32f10x_hd.S:142: Error: bad instruction `__vectors_size EQU __Vectors_End-__Vectors' ../startup_stm32f10x_hd.S:144: Error: bad instruction `area |.text|,CODE,READONLY' ../startup_stm32f10x_hd.S:146: Error: bad instruction `reset handler' ../startup_stm32f10x_hd.S:147: Error: bad instruction `reset_handler PROC' ../startup_stm32f10x_hd.S:148: Error: bad instruction `export Reset_Handler[WEAK]' ../startup_stm32f10x_hd.S:149: Error: bad instruction `import __main' ../startup_stm32f10x_hd.S:150: Error: bad instruction `import SystemInit' ../startup_stm32f10x_hd.S:155: Error: bad instruction `endp' ../startup_stm32f10x_hd.S:157: Error: bad instruction `dummy Exception Handlers(infinite loops which can be modified)' ../startup_stm32f10x_hd.S:159: Error: bad instruction `nmi_handler PROC' ../startup_stm32f10x_hd.S:160: Error: bad instruction `export NMI_Handler[WEAK]' ../startup_stm32f10x_hd.S:162: Error: bad instruction `endp' ../startup_stm32f10x_hd.S:163: Error: bad instruction `hardfault_handler PROC' ../startup_stm32f10x_hd.S:165: Error: bad instruction `export HardFault_Handler[WEAK]' ../startup_stm32f10x_hd.S:167: Error: bad instruction `endp' ../startup_stm32f10x_hd.S:168: Error: bad instruction `memmanage_handler PROC' ../startup_stm32f10x_hd.S:170: Error: bad instruction `export MemManage_Handler[WEAK]' ../startup_stm32f10x_hd.S:172: Error: bad instruction `endp' ../startup_stm32f10x_hd.S:173: Error: bad instruction `busfault_handler PROC' ../startup_stm32f10x_hd.S:175: Error: bad instruction `export BusFault_Handler[WEAK]' ../startup_stm32f10x_hd.S:177: Error: bad instruction `endp' ../startup_stm32f10x_hd.S:178: Error: bad instruction `usagefault_handler PROC' ../startup_stm32f10x_hd.S:180: Error: bad instruction `export UsageFault_Handler[WEAK]' ../startup_stm32f10x_hd.S:182: Error: bad instruction `endp' ../startup_stm32f10x_hd.S:183: Error: bad instruction `svc_handler PROC' ../startup_stm32f10x_hd.S:184: Error: bad instruction `export SVC_Handler[WEAK]' ../startup_stm32f10x_hd.S:186: Error: bad instruction `endp' ../startup_stm32f10x_hd.S:187: Error: bad instruction `debugmon_handler PROC' ../startup_stm32f10x_hd.S:189: Error: bad instruction `export DebugMon_Handler[WEAK]' ../startup_stm32f10x_hd.S:191: Error: bad instruction `endp' ../startup_stm32f10x_hd.S:192: Error: bad instruction `pendsv_handler PROC' ../startup_stm32f10x_hd.S:193: Error: bad instruction `export PendSV_Handler[WEAK]' ../startup_stm32f10x_hd.S:195: Error: bad instruction `endp' ../startup_stm32f10x_hd.S:196: Error: bad instruction `systick_handler PROC' ../startup_stm32f10x_hd.S:197: Error: bad instruction `export SysTick_Handler[WEAK]' ../startup_stm32f10x_hd.S:199: Error: bad instruction `endp' ../startup_stm32f10x_hd.S:201: Error: bad instruction `default_handler PROC' ../startup_stm32f10x_hd.S:203: Error: bad instruction `export WWDG_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:204: Error: bad instruction `export PVD_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:205: Error: bad instruction `export TAMPER_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:206: Error: bad instruction `export RTC_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:207: Error: bad instruction `export FLASH_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:208: Error: bad instruction `export RCC_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:209: Error: bad instruction `export EXTI0_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:210: Error: bad instruction `export EXTI1_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:211: Error: bad instruction `export EXTI2_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:212: Error: bad instruction `export EXTI3_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:213: Error: bad instruction `export EXTI4_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:214: Error: bad instruction `export DMA1_Channel1_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:215: Error: bad instruction `export DMA1_Channel2_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:216: Error: bad instruction `export DMA1_Channel3_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:217: Error: bad instruction `export DMA1_Channel4_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:218: Error: bad instruction `export DMA1_Channel5_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:219: Error: bad instruction `export DMA1_Channel6_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:220: Error: bad instruction `export DMA1_Channel7_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:221: Error: bad instruction `export ADC1_2_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:222: Error: bad instruction `export USB_HP_CAN1_TX_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:223: Error: bad instruction `export USB_LP_CAN1_RX0_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:224: Error: bad instruction `export CAN1_RX1_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:225: Error: bad instruction `export CAN1_SCE_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:226: Error: bad instruction `export EXTI9_5_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:227: Error: bad instruction `export TIM1_BRK_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:228: Error: bad instruction `export TIM1_UP_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:229: Error: bad instruction `export TIM1_TRG_COM_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:230: Error: bad instruction `export TIM1_CC_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:231: Error: bad instruction `export TIM2_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:232: Error: bad instruction `export TIM3_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:233: Error: bad instruction `export TIM4_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:234: Error: bad instruction `export I2C1_EV_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:235: Error: bad instruction `export I2C1_ER_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:236: Error: bad instruction `export I2C2_EV_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:237: Error: bad instruction `export I2C2_ER_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:238: Error: bad instruction `export SPI1_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:239: Error: bad instruction `export SPI2_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:240: Error: bad instruction `export USART1_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:241: Error: bad instruction `export USART2_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:242: Error: bad instruction `export USART3_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:243: Error: bad instruction `export EXTI15_10_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:244: Error: bad instruction `export RTCAlarm_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:245: Error: bad instruction `export USBWakeUp_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:246: Error: bad instruction `export TIM8_BRK_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:247: Error: bad instruction `export TIM8_UP_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:248: Error: bad instruction `export TIM8_TRG_COM_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:249: Error: bad instruction `export TIM8_CC_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:250: Error: bad instruction `export ADC3_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:251: Error: bad instruction `export FSMC_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:252: Error: bad instruction `export SDIO_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:253: Error: bad instruction `export TIM5_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:254: Error: bad instruction `export SPI3_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:255: Error: bad instruction `export UART4_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:256: Error: bad instruction `export UART5_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:257: Error: bad instruction `export TIM6_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:258: Error: bad instruction `export TIM7_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:259: Error: bad instruction `export DMA2_Channel1_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:260: Error: bad instruction `export DMA2_Channel2_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:261: Error: bad instruction `export DMA2_Channel3_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:262: Error: bad instruction `export DMA2_Channel4_5_IRQHandler[WEAK]' ../startup_stm32f10x_hd.S:264: Error: bad instruction `wwdg_irqhandler' ../startup_stm32f10x_hd.S:265: Error: bad instruction `pvd_irqhandler' ../startup_stm32f10x_hd.S:266: Error: bad instruction `tamper_irqhandler' ../startup_stm32f10x_hd.S:267: Error: bad instruction `rtc_irqhandler' ../startup_stm32f10x_hd.S:268: Error: bad instruction `flash_irqhandler' ../startup_stm32f10x_hd.S:269: Error: bad instruction `rcc_irqhandler' ../startup_stm32f10x_hd.S:270: Error: bad instruction `exti0_irqhandler' ../startup_stm32f10x_hd.S:271: Error: bad instruction `exti1_irqhandler' ../startup_stm32f10x_hd.S:272: Error: bad instruction `exti2_irqhandler' ../startup_stm32f10x_hd.S:273: Error: bad instruction `exti3_irqhandler' ../startup_stm32f10x_hd.S:274: Error: bad instruction `exti4_irqhandler' ../startup_stm32f10x_hd.S:275: Error: bad instruction `dma1_channel1_irqhandler' ../startup_stm32f10x_hd.S:276: Error: bad instruction `dma1_channel2_irqhandler' ../startup_stm32f10x_hd.S:277: Error: bad instruction `dma1_channel3_irqhandler' ../startup_stm32f10x_hd.S:278: Error: bad instruction `dma1_channel4_irqhandler' ../startup_stm32f10x_hd.S:279: Error: bad instruction `dma1_channel5_irqhandler' ../startup_stm32f10x_hd.S:280: Error: bad instruction `dma1_channel6_irqhandler' ../startup_stm32f10x_hd.S:281: Error: bad instruction `dma1_channel7_irqhandler' ../startup_stm32f10x_hd.S:282: Error: bad instruction `adc1_2_irqhandler' ../startup_stm32f10x_hd.S:283: Error: bad instruction `usb_hp_can1_tx_irqhandler' ../startup_stm32f10x_hd.S:284: Error: bad instruction `usb_lp_can1_rx0_irqhandler' ../startup_stm32f10x_hd.S:285: Error: bad instruction `can1_rx1_irqhandler' ../startup_stm32f10x_hd.S:286: Error: bad instruction `can1_sce_irqhandler' ../startup_stm32f10x_hd.S:287: Error: bad instruction `exti9_5_irqhandler' ../startup_stm32f10x_hd.S:288: Error: bad instruction `tim1_brk_irqhandler' ../startup_stm32f10x_hd.S:289: Error: bad instruction `tim1_up_irqhandler' ../startup_stm32f10x_hd.S:290: Error: bad instruction `tim1_trg_com_irqhandler' ../startup_stm32f10x_hd.S:291: Error: bad instruction `tim1_cc_irqhandler' ../startup_stm32f10x_hd.S:292: Error: bad instruction `tim2_irqhandler' ../startup_stm32f10x_hd.S:293: Error: bad instruction `tim3_irqhandler' ../startup_stm32f10x_hd.S:294: Error: bad instruction `tim4_irqhandler' ../startup_stm32f10x_hd.S:295: Error: bad instruction `i2c1_ev_irqhandler' ../startup_stm32f10x_hd.S:296: Error: bad instruction `i2c1_er_irqhandler' ../startup_stm32f10x_hd.S:297: Error: bad instruction `i2c2_ev_irqhandler' ../startup_stm32f10x_hd.S:298: Error: bad instruction `i2c2_er_irqhandler' ../startup_stm32f10x_hd.S:299: Error: bad instruction `spi1_irqhandler' ../startup_stm32f10x_hd.S:300: Error: bad instruction `spi2_irqhandler' ../startup_stm32f10x_hd.S:301: Error: bad instruction `usart1_irqhandler' ../startup_stm32f10x_hd.S:302: Error: bad instruction `usart2_irqhandler' ../startup_stm32f10x_hd.S:303: Error: bad instruction `usart3_irqhandler' ../startup_stm32f10x_hd.S:304: Error: bad instruction `exti15_10_irqhandler' ../startup_stm32f10x_hd.S:305: Error: bad instruction `rtcalarm_irqhandler' ../startup_stm32f10x_hd.S:306: Error: bad instruction `usbwakeup_irqhandler' ../startup_stm32f10x_hd.S:307: Error: bad instruction `tim8_brk_irqhandler' ../startup_stm32f10x_hd.S:308: Error: bad instruction `tim8_up_irqhandler' ../startup_stm32f10x_hd.S:309: Error: bad instruction `tim8_trg_com_irqhandler' ../startup_stm32f10x_hd.S:310: Error: bad instruction `tim8_cc_irqhandler' ../startup_stm32f10x_hd.S:311: Error: bad instruction `adc3_irqhandler' ../startup_stm32f10x_hd.S:312: Error: bad instruction `fsmc_irqhandler' ../startup_stm32f10x_hd.S:313: Error: bad instruction `sdio_irqhandler' ../startup_stm32f10x_hd.S:314: Error: bad instruction `tim5_irqhandler' ../startup_stm32f10x_hd.S:315: Error: bad instruction `spi3_irqhandler' ../startup_stm32f10x_hd.S:316: Error: bad instruction `uart4_irqhandler' ../startup_stm32f10x_hd.S:317: Error: bad instruction `uart5_irqhandler' ../startup_stm32f10x_hd.S:318: Error: bad instruction `tim6_irqhandler' ../startup_stm32f10x_hd.S:319: Error: bad instruction `tim7_irqhandler' ../startup_stm32f10x_hd.S:320: Error: bad instruction `dma2_channel1_irqhandler' ../startup_stm32f10x_hd.S:321: Error: bad instruction `dma2_channel2_irqhandler' ../startup_stm32f10x_hd.S:322: Error: bad instruction `dma2_channel3_irqhandler' ../startup_stm32f10x_hd.S:323: Error: bad instruction `dma2_channel4_5_irqhandler' ../startup_stm32f10x_hd.S:326: Error: bad instruction `endp' ../startup_stm32f10x_hd.S:328: Error: bad instruction `align' ../startup_stm32f10x_hd.S:330: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:331: Error: bad instruction `user Stack and Heap initialization' ../startup_stm32f10x_hd.S:332: Error: junk at end of line, first unrecognized character is `*' ../startup_stm32f10x_hd.S:333: Error: bad instruction `__microlib' ../startup_stm32f10x_hd.S:335: Error: bad instruction `export __initial_sp' ../startup_stm32f10x_hd.S:336: Error: bad instruction `export __heap_base' ../startup_stm32f10x_hd.S:337: Error: bad instruction `export __heap_limit' ../startup_stm32f10x_hd.S:339: Error: bad instruction `else' ../startup_stm32f10x_hd.S:341: Error: bad instruction `import __use_two_region_memory' ../startup_stm32f10x_hd.S:342: Error: bad instruction `export __user_initial_stackheap' ../startup_stm32f10x_hd.S:344: Error: bad instruction `__user_initial_stackheap' ../startup_stm32f10x_hd.S:347: Error: constant expression expected -- `ldr R1,=(Stack_Mem+Stack_Size)' ../startup_stm32f10x_hd.S:348: Error: constant expression expected -- `ldr R2,=(Heap_Mem+Heap_Size)' ../startup_stm32f10x_hd.S:352: Error: bad instruction `align' ../startup_stm32f10x_hd.S:354: Error: bad instruction `endif' ../startup_stm32f10x_hd.S:356: Error: bad instruction `end' ../startup_stm32f10x_hd.S:358: Error: junk at end of line, first unrecognized character is `*' cs-make: *** [startup_stm32f10x_hd.o] Error 1 **** Build Finished ****
Eventuell falsches Dateiformat, der Compiler verschluckt sich an irgendwelchen Zeichen die er nicht interpretieren kann.
Der Fehler wird durch die erste Meldung angezeigt. Du musst da nicht noch tausend Folgefehlermeldungen posten. >../startup_stm32f10x_hd.S: Assembler messages: >../startup_stm32f10x_hd.S:1: Error: junk at end of line, first >unrecognized character is `*' Such bei google nach Error: junk at end of line
http://communities.mentor.com/community/cs/archives/arm-gnu/msg03008.html Okay scheinbar ist die Syntax falsch. Dies hier ist ARM Ltd Assembler Syntax, welche nicht kompatibel mit ARM GNU Assembler Syntax ist. Welchen Compiler benutzt ihr denn?
>Okay scheinbar ist die Syntax falsch. Dies hier ist ARM Ltd Assembler >Syntax, welche nicht kompatibel mit ARM GNU Assembler Syntax ist. >Welchen Compiler benutzt ihr denn? Vergiss den Unsinn. Die erste Fehlermeldung ist wichtig. Den Rest danach kannst du in die Tonne hauen.
Klaus schrieb: > http://communities.mentor.com/community/cs/archives/arm-gnu/msg03008.html > > Okay scheinbar ist die Syntax falsch. Dies hier ist ARM Ltd Assembler > Syntax, welche nicht kompatibel mit ARM GNU Assembler Syntax ist. > Welchen Compiler benutzt ihr denn? Ich benutze ebenfalls Sourcery G++ lite mit Eclipse. Das Problem sind die Kommentare. Der GCC möchte gerne die Kommentare so wie sie auch in C/C++ gemacht werden, also; // Einzeiliger Kommentar /* Kommentar Block */ Du kannst versuchen die Kommentare zu ändern (alles hintere einem ; soll Kommentar sein), aber ich befürchte das die das nicht viel hilft schau dich lieber nach einer neuen Datei um. Ganz heißer Tipp: In der Standard Periphals Library von ST ist sicher eine passende Datei dabei. Am besten du schaust dich nach Dateien fürs Trolltech Studio um das kommt deinem Setup am nächsten.
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.