Page 1 of 1

Error when I want to flash the firmware to Crazyflie

Posted: Wed Jul 26, 2017 1:47 pm
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

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

Posted: Thu Jul 27, 2017 8:25 am
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 ;).

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

Posted: Wed Sep 19, 2018 6:14 am
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.

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

Posted: Thu Sep 24, 2020 2:09 pm
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.

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

Posted: Fri Sep 25, 2020 8:35 am
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 :)

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

Posted: Sat Mar 20, 2021 4:58 pm
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

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

Posted: Mon Mar 22, 2021 2:10 pm
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!

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

Posted: Tue Mar 23, 2021 5:13 pm
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

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

Posted: Wed Mar 24, 2021 8:58 am
by kimberly
The answer is given for your problem in this thread: viewtopic.php?f=6&t=4750