Error when I want to flash the firmware to Crazyflie

Firmware/software/electronics/mechanics
Post Reply
matthieuouy
Beginner
Posts: 1
Joined: Wed Jul 26, 2017 1:30 pm

Error when I want to flash the firmware to Crazyflie

Post by matthieuouy »

Hi!

I'm new in this forum: I'd just bought my drone a month ago.
Yesterday, I started to learn how to modify the SourceCode on the VirtualMachine with the tutorial on the website. I followed all the steps and when I wanted to flash the code, there was an error:
[Errno2] No such file or directory: 'cf2.bin'

Can someone help me please? :)
Thanks a lot

Matthieu
arnaud
Bitcraze
Posts: 2466
Joined: Tue Feb 06, 2007 12:36 pm

Re: Error when I want to flash the firmware to Crazyflie

Post by arnaud »

Hi, what command where you running when this error appeared? I assume you where running "Flash using radio"? If so, you should first build the firmware with "make CLOAD", this will generate 'cf2.bin' (assuming the compilation completes without error ;).
percy.jaiswal
Beginner
Posts: 14
Joined: Sun Apr 01, 2018 4:23 am

Re: Error when I want to flash the firmware to Crazyflie

Post by percy.jaiswal »

Thanks Arnaud. Even I was facing this problem and your suggestion helped solve it. I think this step should be mentioned in "Programming the Crazyflie" tutorial under "Build the source code" section.
raven
Member
Posts: 32
Joined: Thu Sep 24, 2020 1:57 pm
Contact:

Re: Error when I want to flash the firmware to Crazyflie

Post by raven »

percy.jaiswal wrote: Wed Sep 19, 2018 6:14 am Thanks Arnaud. Even I was facing this problem and your suggestion helped solve it. I think this step should be mentioned in "Programming the Crazyflie" tutorial under "Build the source code" section.
Agree, I met this problem, too.
Make positive impact.
kimberly
Bitcraze
Posts: 749
Joined: Fri Jul 06, 2018 11:13 am

Re: Error when I want to flash the firmware to Crazyflie

Post by kimberly »

Could you specify more clearly were this documentation is? Since both the VM tutorial and the readme of the repo do indicate you have to build the firmware first:

https://www.bitcraze.io/documentation/t ... velopment/
https://github.com/bitcraze/crazyflie-firmware

It is good to know where you found this, so that we are aware if there is any old documentation sources we ought to remove :)
Franky
Beginner
Posts: 6
Joined: Sat Mar 20, 2021 4:55 pm

Re: Error when I want to flash the firmware to Crazyflie

Post by Franky »

The problem with the documentation is here:
https://www.bitcraze.io/documentation/t ... velopment/

There is not mention of MAKE CLOAD

and I have the following addition problem when I "flash using radio":

make[1]: *** No rule to make target 'list.o', needed by 'cf2.elf'. Stop.
Makefile:397: recipe for target 'build' failed
make: *** [build] Error 2
kristoffer
Bitcraze
Posts: 479
Joined: Tue Jun 30, 2015 7:47 am

Re: Error when I want to flash the firmware to Crazyflie

Post by kristoffer »

We should probably update the documentation a bit.

The getting started guide is designed to use the eclipse IDE in the virtual machine. Both the Virtual machine and getting started guide are unfortunately fairly old, we are in the process to update them.

The documentation in https://github.com/bitcraze/crazyflie-firmware is using a terminal window instead, hence the confusion. There are many ways to flash a crazyflie :-)

I would suggest you do everything from command line (that is from a terminal window). Assuming you are using the virtual machine

1. Open a terminal window
2. Make sure you are in the root directory of the crazyflie firmware.

Code: Select all

cd /home/bitcraze/projects/crazyflie-firmware
3. Clean your build

Code: Select all

make clean
4. Build

Code: Select all

make
5. Put your Crazyflie in boot loader mode as described here https://www.bitcraze.io/documentation/t ... /#bootload
6. Start flashing

Code: Select all

make cload
That should be it!
Franky
Beginner
Posts: 6
Joined: Sat Mar 20, 2021 4:55 pm

Re: Error when I want to flash the firmware to Crazyflie

Post by Franky »

I have tried what you have suggested but I have the same problem:

bitcraze@ubuntu:~$ cd /home/bitcraze/projects/crazyflie-firmware
bitcraze@ubuntu:~/projects/crazyflie-firmware$ make clean
CLEAN
bitcraze@ubuntu:~/projects/crazyflie-firmware$ make
CLEAN_VERSION
make[1]: *** No rule to make target 'list.o', needed by 'cf2.elf'. Stop.
Makefile:397: recipe for target 'build' failed
make: *** [build] Error 2

Hope you can help me,
Regards,

Franky
kimberly
Bitcraze
Posts: 749
Joined: Fri Jul 06, 2018 11:13 am

Re: Error when I want to flash the firmware to Crazyflie

Post by kimberly »

The answer is given for your problem in this thread: viewtopic.php?f=6&t=4750
Post Reply