Problem with gnu ld and STM32

Guest #2576758
Rate this post
• ▲ useful
▼ not useful
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
Attached files:
#2577780
Rate this post
• ▲ useful
▼ not useful
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.
Guest #2578096
Rate this post
• ▲ useful
▼ not useful
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?
Guest #2597432
Rate this post
• ▲ useful
▼ not useful
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.

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.