Hallo, wenn ich in Eclipse ein Beispielprojekt für den STM32 anlege kann
dies kompiliert und geflasht werden. Nun habe ich mir die StdPeriphLib
zusammengeklickt. Dies lässt sich auch kompilieren bis ich das
Startup-File einbinde. ( startup_stm32f40xx.asm oder auch
startup_stm32f40xx.S ) Es sieht so aus, als ob Eclipse kein asm kann.
Woran könnte das liegen?
Als Toolchain habe ich probiert:
- GNU Tools for ARM Embedded Processors (arm-none-eabi-gcc)
und
- Sourcery CodeBench Lite for ARM EABI (arm-none-eabi-gcc)
Bei beiden Varianten tritt das selbe Problem auf. Ich denke bzw. hoffe,
dass es bestimmt nur eine kleinigkeit in den Einstellungen ist.
Ein Profi, der etwas tiefer mit der Materie vertraut ist, kann mir
bestimmt weiter helfen.
Anbei noch der gekürzte Konsolenauszug
1 | .
|
2 | .
|
3 | .
|
4 | End of search list.
|
5 | COLLECT_GCC_OPTIONS='-mcpu=cortex-m4' '-mthumb' '-O0' '-fmessage-length=0' '-fsigned-char' '-ffunction-sections' '-fdata-sections' '-g' '-D' 'USE_STDPERIPH_DRIVER' '-D' 'HSE_VALUE=8000000' '-I' '/home/username/embedded_workspace/tst/inc' '-I' '/home/username/embedded_workspace/tst/StdPeriphLib/inc' '-I' '/home/username/embedded_workspace/tst/system/CMSIS/Include' '-I' '/home/usernme/embedded_workspace/tst' '-v' '-MMD' '-MP' '-MF' 'src/startup_stm32f40xx.d' '-MT' 'src/startup_stm32f40xx.o' '-c' '-o' 'src/startup_stm32f40xx.o'
|
6 | /home/username/EmbeddedArm/gcc-arm-none-eabi-4_8-2014q3/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/as --gdwarf2 -v -I /home/username/embedded_workspace/tst/inc -I /home/username/embedded_workspace/tst/StdPeriphLib/inc -I /home/username/embedded_workspace/tst/system/CMSIS/Include -I /home/username/embedded_workspace/tst -mcpu=cortex-m4 -meabi=5 -adhlns=src/startup_stm32f40xx.o.lst -o src/startup_stm32f40xx.o /tmp/cc5PgyDv.s
|
7 | GNU assembler version 2.23.2 (arm-none-eabi) using BFD version (GNU Tools for ARM Embedded Processors) 2.23.2.20140731
|
8 | ../src/startup_stm32f40xx.S: Assembler messages:
|
9 | ../src/startup_stm32f40xx.S:1: Error: junk at end of line, first unrecognized character is `*'
|
10 | ../src/startup_stm32f40xx.S:2: Error: junk at end of line, first unrecognized character is `*'
|
11 | ../src/startup_stm32f40xx.S:3: Error: junk at end of line, first unrecognized character is `*'
|
12 | .
|
13 | .
|
14 | .
|
15 | .
|
16 | ../src/startup_stm32f40xx.S:433: Error: bad instruction `end'
|
17 | ../src/startup_stm32f40xx.S:435: Error: junk at end of line, first unrecognized character is `*'
|
18 | make: *** [src/startup_stm32f40xx.o] Fehler 1
|
Vielen Dank und Gruß,
Andy