Hello, I'm trying to make anSTM32F103 work with the Code Sourcery tool chain. Using the attached ld command file, I get these errors: Invoking: Cross GCC Linker gcc -L"/home/Tommi/workspace/FWLib/Release" -Wl,-T ../SRC/STM32_Lnk.cmd -o "LED01" ./SRC/core_cm3.o ./SRC/main.o ./SRC/startup_stm32f10x_hd.o ./SRC/stm32f10x_it.o -lFWLib collect2: ld terminated with signal 11 [Segmentation fault] /home/Tommi/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/. ./lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueab i/bin/ld: BFD (Sourcery CodeBench Lite 2011.09-70) 2.21.53.20110905 assertion fail /scratch/jwlemke/2011.09-arm-linux-eabi-lite/obj/binutils-src-2011.09-70 -arm-none-linux-gnueabi-i686-pc-linux-gnu/bfd/elf32-arm.c:7504 /home/Tommi/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/. ./lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueab i/bin/ld: BFD (Sourcery CodeBench Lite 2011.09-70) 2.21.53.20110905 assertion fail /scratch/jwlemke/2011.09-arm-linux-eabi-lite/obj/binutils-src-2011.09-70 -arm-none-linux-gnueabi-i686-pc-linux-gnu/bfd/elf32-arm.c:7504 /home/Tommi/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/. ./lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueab i/bin/ld: BFD (Sourcery CodeBench Lite 2011.09-70) 2.21.53.20110905 assertion fail /scratch/jwlemke/2011.09-arm-linux-eabi-lite/obj/binutils-src-2011.09-70 -arm-none-linux-gnueabi-i686-pc-linux-gnu/bfd/elf32-arm.c:7504 /home/Tommi/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/. ./lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueab i/bin/ld: BFD (Sourcery CodeBench Lite 2011.09-70) 2.21.53.20110905 assertion fail /scratch/jwlemke/2011.09-arm-linux-eabi-lite/obj/binutils-src-2011.09-70 -arm-none-linux-gnueabi-i686-pc-linux-gnu/bfd/elf32-arm.c:13826 make: *** [LED01] Fehler 1 **** Build Finished **** What is wrong? Thanks for your help, Tommi
Thomas H. wrote: > Hello, > I'm trying to make anSTM32F103 work with the Code Sourcery tool chain. > Using the attached ld command file, I get these errors: > > Invoking: Cross GCC Linker > gcc -L"/home/Tommi/workspace/FWLib/Release" -Wl,-T ../SRC/STM32_Lnk.cmd > ... Are you sure you want to invoke gcc? This will probably be your local compiler/linker. I don't know your toolchain, but I would assume the compiler/linker could look like arm-anything-gcc.
Ok, I forgot: I'm working on Linux, first in my path is a local directory that contains symbolic links to the CodeSourcery tools. The message: /home/Tommi/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/. ./lib/gcc/arm-none-linux-gnueabi/4.6.1/../../../../arm-none-linux-gnueab i/bin/ld: BFD (Sourcery CodeBench Lite 2011.09-70) 2.21.53.20110905 assertion fail tells me, that I actually invoke "arm-none-linux-gnueabi/bin/ld" Right?
Ok, I found it: I downloaded arm-none-linux-gnueabi because I am working on linux as development platform. Bad idea! This is for building application with a linux on the target. I should have downloaded arm-none-eabi, which is the 'bare metal' tool chain for a 'naked' controller. I'm starting over now, following the "getting-started" that was provided with the tool chain.
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.