Page 1 of 1

Update modified firmware from ubuntu 14.04

Posted: Wed Feb 03, 2016 1:53 am
by lgenzelis
Hello! I struggled for some time to be able to update a modified version of the firmware from an ubuntu 14.04 pc, and I finally got it working. Here https://github.com/bitcraze/crazyflie-f ... bianubuntu the section corresponding to ubuntu is listed as "TODO". So I thought I could share the steps I followed.

First, go to the parent directory of the crazyflie-clients-python folder (I guess everyone already cloned that project) and clone the firmware project:

Code: Select all

git clone https://github.com/bitcraze/crazyflie-firmware
. Now, cd into the crazyflie-firmware folder and run the command

Code: Select all

make
. You are probably gonna get an error saying 'make: arm-none-eabi-gcc: Command not found'. You could try

Code: Select all

sudo apt-get install gcc-arm-none-eabi
, but that's not gonna work. If you do that, you are gonna bypass the previous error, but now you're gonna get "arm-none-eabi-gcc: error: nano.specs: No such file or director".

The solution? Don't install the official package (so, if you already did, use apt-get remove to uninstall it). Add this repository, from the developers of gcc arm embedded:

Code: Select all

sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded
, and then run

Code: Select all

sudo apt-get update
. Now, you can install the necessary packages:

Code: Select all

sudo apt-get install libnewlib-arm-none-eabi
.

Back again in the crazyflie-firmware folder, run

Code: Select all

make
. Now it should run without errors. Finally, set the crazyflie in bootloader mode (with the crazyflie off, press the on button for 3 seconds, until the blue leds start to blink), and run

Code: Select all

make cload
.

That's it! I hope this helps someone! :D

Re: Update modified firmware from ubuntu 14.04

Posted: Wed Feb 03, 2016 2:17 am
by chad
Very nice write-up! If you wish you can add a condensed version to the README and send a pull request to Bitcraze...

Re: Update modified firmware from ubuntu 14.04

Posted: Wed Feb 03, 2016 6:48 pm
by lgenzelis
Thanks! I've just sent the pull request.