Page 1 of 1

[SOLVED] Problem with Compiling CF's FW on Ubuntu 12.10

Posted: Thu Jun 20, 2013 8:10 pm
by amir64
I'm trying try to compile a custom FW using Make command but I get the following error:
amir@ubuntu:~/crazyflie-customfirmware-master$ make
CLEAN_VERSION
AS startup_stm32f10x_md.o
make: arm-none-eabi-as: Command not found
make: *** [startup_stm32f10x_md.o] Error 127

Any suggestion on how I can fix this?

Re: Problem with Compiling CF's FW on Ubuntu 12.10

Posted: Thu Jun 20, 2013 8:20 pm
by TheFrog4u
seems like you don't have the arm compiler (more precicely the assember, which comes with the toolchain) installed. You need gcc-arm-none-eabi. Have a look into the wiki here

Re: Problem with Compiling CF's FW on Ubuntu 12.10

Posted: Thu Jun 20, 2013 9:05 pm
by amir64
I followd the instrunction mentioned in your link but I still get the same error :cry:

Re: Problem with Compiling CF's FW on Ubuntu 12.10

Posted: Fri Jun 21, 2013 5:54 am
by foosel
What output does "echo $PATH" generate? Also, have you tried opening a new terminal / shell after changing bashrc?

Re: Problem with Compiling CF's FW on Ubuntu 12.10

Posted: Fri Jun 21, 2013 7:28 am
by amir64
This is what I get whenI type in echo SPATH:
amir@ubuntu:~$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/amir/bin/gcc-arm-none-eabi/bin:/home/amir/bin/gcc-arm-none-eabi/bin:/home/amir/bin/gcc-arm-none-eabi/bin:/home/amir/bin/gcc-arm-none-eabi/bin

I also tried opening another terminal after changing bashrc but I get the same exact error.

Re: Problem with Compiling CF's FW on Ubuntu 12.10

Posted: Fri Jun 21, 2013 9:46 am
by TheFrog4u
ok, first of all wyh do you have "/home/amir/bin/gcc-arm-none-eabi/bin" 4 time in your PATH ? However this should not be the issue. Do you have "arm-none-eabi-as" in "/home/amir/bin/gcc-arm-none-eabi/bin" ?

ls -l /home/amir/bin/gcc-arm-none-eabi/bin

Jens

Re: Problem with Compiling CF's FW on Ubuntu 12.10

Posted: Fri Jun 21, 2013 11:02 am
by amir64
I guess that is because i tried doing this several times. I missing "arm-none-eabi-as" in "/home/amir/bin/gcc-arm-none-eabi/bin". This is what I have in bin:

amir@ubuntu:~/libcflie/build$ ls -l /home/amir/bin/gcc-arm-none-eabi/bin
total 11644
-rwxr-xr-x 1 amir amir 614728 Mar 12 11:26 arm-none-eabi-addr2line
-rwxr-xr-x 1 amir amir 613172 Mar 12 11:26 arm-none-eabi-c++filt
-rwxr-xr-x 1 amir amir 463324 Mar 12 11:26 arm-none-eabi-cpp
-rwxr-xr-x 1 amir amir 21300 Mar 12 11:26 arm-none-eabi-elfedit
-rwxr-xr-x 1 amir amir 467420 Mar 12 11:26 arm-none-eabi-g++
-rwxr-xr-x 1 amir amir 463324 Mar 12 11:26 arm-none-eabi-gcc-4.7.3
-rwxr-xr-x 1 amir amir 18996 Mar 12 11:26 arm-none-eabi-gcc-ar
-rwxr-xr-x 1 amir amir 18932 Mar 12 11:26 arm-none-eabi-gcc-nm
-rwxr-xr-x 1 amir amir 18932 Mar 12 11:26 arm-none-eabi-gcc-ranlib
-rwxr-xr-x 1 amir amir 179940 Mar 12 11:26 arm-none-eabi-gcov
-rwxr-xr-x 1 amir amir 3364364 Mar 12 11:26 arm-none-eabi-gdb
-rwxr-xr-x 1 amir amir 3364364 Mar 12 11:26 arm-none-eabi-gdbtui
-rwxr-xr-x 1 amir amir 675080 Mar 12 11:26 arm-none-eabi-gprof
-rwxr-xr-x 1 amir amir 369744 Mar 12 11:26 arm-none-eabi-readelf
-rwxr-xr-x 1 amir amir 615496 Mar 12 11:26 arm-none-eabi-size
-rwxr-xr-x 1 amir amir 615368 Mar 12 11:26 arm-none-eabi-strings

Re: Problem with Compiling CF's FW on Ubuntu 12.10

Posted: Sat Jun 22, 2013 4:12 pm
by TheFrog4u
So here we have the issue.. You are missing some stuff. Can you try downloading THIS and unpack it in the gcc-arm-none-eabi folder which you already have. This should add all the stuff you are missing.

Re: Problem with Compiling CF's FW on Ubuntu 12.10

Posted: Sat Jun 22, 2013 7:53 pm
by amir64
I did that and it's working now. Thank you so much for your help :P

Re: Problem with Compiling CF's FW on Ubuntu 12.10

Posted: Sun Jun 23, 2013 12:40 pm
by TheFrog4u
glad I could help.. will mark this topic as solved