Error when I want to flash the firmware to Crazyflie
-
- Beginner
- Posts: 1
- Joined: Wed Jul 26, 2017 1:30 pm
Error when I want to flash the firmware to Crazyflie
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
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
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 .
-
- Beginner
- Posts: 14
- Joined: Sun Apr 01, 2018 4:23 am
Re: Error when I want to flash the firmware to Crazyflie
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
Agree, I met this problem, too.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.
Make positive impact.
Re: Error when I want to flash the firmware to Crazyflie
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
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
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
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
-
- Bitcraze
- Posts: 630
- Joined: Tue Jun 30, 2015 7:47 am
Re: Error when I want to flash the firmware to Crazyflie
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.
3. Clean your build
4. Build
5. Put your Crazyflie in boot loader mode as described here https://www.bitcraze.io/documentation/t ... /#bootload
6. Start flashing
That should be it!
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
Code: Select all
make clean
Code: Select all
make
6. Start flashing
Code: Select all
make cload
Re: Error when I want to flash the firmware to Crazyflie
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
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
The answer is given for your problem in this thread: viewtopic.php?f=6&t=4750