Forum: ARM programming with GCC/GNU tools SAM7-EX256 - /bin/sh: arm-elf-as: command not found

von Roslan H. (r0skata)

Rate this post
0 useful
not useful

I have some issue with building an ARM demo code.
What i'm running is Eclise Helios with Zyling CDT, yagarto tools, 
OpenOCD 0.6.1, Cygwin
basically i downloaded Olimex OpenOCD Development Tools (which included 
all of the above) as i need to debug a SAM7-EX256 board.

After building the project i get the message - "/bin/sh: arm-elf-as: 
command not found"
I tried to google but couldn't find any solutions to this issue, also 
i'm running windows 7, all path environment's are added.
I can build simple stuff like "Hello World" without a problem.

Here's what i get when i try to build my source file for the ARM:

make -j all
Building file: ../MyNewEmpty.c
Building file: ../crt.asm
Invoking: Cygwin C Compiler
arm-elf-gcc -I"C:\Progra~1\yagarto\arm-elf\include" 
-I"C:\OlimexODS\examples\LIB_SAM7EX256" -O0 -g3 -Wall -c 
-fmessage-length=0 -MMD -MP -MF"MyNewEmpty.d" -MT"MyNewEmpty.d" 
-o"MyNewEmpty.o" "../MyNewEmpty.c"
/bin/sh: arm-elf-gcc: command not found
Invoking: GCC Assembler
make: *** [MyNewEmpty.o] Error 127
arm-elf-as -o"crt.o" "../crt.asm"
subdir.mk:22: recipe for target 'MyNewEmpty.o' failed
make: *** Waiting for unfinished jobs....
subdir.mk:29: recipe for target 'crt.o' failed
/bin/sh: arm-elf-as: command not found
make: *** [crt.o] Error 127

If anyone can help me with this will be greatly appreciated !

I have mentioned this also in the Eclipse CDT forums where some people 
suggested this:

"You are missing the whole GCC compiler toolset, starting with 
arm-elf-gcc. Maybe the PATH is not set up to include it.
The GNU compiler set needs the compiler driver (gcc), preprocessor 
(cpp), compiler itself (cc1), assembler (as) and linker (ld). For 
bare-bones hardware targets you may need some utilities, like objcopy. 
The program names are often prepended with codes telling which 
configuration the toolset has.
The arm-elf-* toolset is pretty old, maybe your old Eclipse setup is no 
more compatible with the current compiler (probably arm-none-eabi-*).

A good option to get pre-built arm-non-eabi tools is from Launchpad: 
https://launchpad.net/gcc-arm-embedded "

I have installed the arm-non-eabi that was suggested added to tne PATH 
environmentals and still doesnt work.

Also for the GCC compiler toolset i got Cygwin installed isnt that 
enough ?

Thank you.
I would really appreciate if you can help !


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.