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

von Roslan H. (r0skata)

Rate this post
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 !

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
No account? Register here.