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

Firmware/software/electronics/mechanics
Post Reply
amir64
Beginner
Posts: 16
Joined: Tue Jun 11, 2013 8:15 pm
Location: Pullman, USA

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

Post 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?
TheFrog4u
Expert
Posts: 113
Joined: Fri Feb 08, 2013 6:59 pm
Location: Bremen, Germany

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

Post 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
amir64
Beginner
Posts: 16
Joined: Tue Jun 11, 2013 8:15 pm
Location: Pullman, USA

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

Post by amir64 »

I followd the instrunction mentioned in your link but I still get the same error :cry:
foosel
Expert
Posts: 175
Joined: Sat Feb 02, 2013 9:59 pm
Location: Obertshausen, Germany
Contact:

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

Post by foosel »

What output does "echo $PATH" generate? Also, have you tried opening a new terminal / shell after changing bashrc?
Image
Also: AR.Drone 2.0 (RC-enabled thanks to self-soldered MiruMod) and Hubsan X4 H107
amir64
Beginner
Posts: 16
Joined: Tue Jun 11, 2013 8:15 pm
Location: Pullman, USA

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

Post 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.
TheFrog4u
Expert
Posts: 113
Joined: Fri Feb 08, 2013 6:59 pm
Location: Bremen, Germany

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

Post 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
amir64
Beginner
Posts: 16
Joined: Tue Jun 11, 2013 8:15 pm
Location: Pullman, USA

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

Post 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
TheFrog4u
Expert
Posts: 113
Joined: Fri Feb 08, 2013 6:59 pm
Location: Bremen, Germany

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

Post 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.
amir64
Beginner
Posts: 16
Joined: Tue Jun 11, 2013 8:15 pm
Location: Pullman, USA

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

Post by amir64 »

I did that and it's working now. Thank you so much for your help :P
TheFrog4u
Expert
Posts: 113
Joined: Fri Feb 08, 2013 6:59 pm
Location: Bremen, Germany

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

Post by TheFrog4u »

glad I could help.. will mark this topic as solved
Post Reply