Page 1 of 1

CrazyFlie not working with default firmware in VM 0.6

Posted: Thu Jan 22, 2015 10:24 am
by zerko
Hi everyone,

I want to start enjoying my great Crazyflie by programming some new features.

I downloaded the Virtual Machine v.0.6 and connect my usb dongle.

Then I run eclipse and I build crazy-firmware (Flash using radio) without any changes to the code. It finds my CF and upgrade the firmware.

But apparently this firmware is not working because my CF doesn't start correctly (rotors are not tested and led (red and green I think) are blinking.

Do you have any idea of what could be wrong?

Thank you in advance :)

Best,

Re: CrazyFlie not working with default firmware in VM 0.6

Posted: Fri Jan 23, 2015 12:27 am
by chad
Hi!

Do you have Crazyflie 1.0 or Crazyflie 2.0?

Re: CrazyFlie not working with default firmware in VM 0.6

Posted: Fri Jan 23, 2015 7:33 am
by zerko
Crazyflie 1.0

Re: CrazyFlie not working with default firmware in VM 0.6

Posted: Fri Jan 23, 2015 8:14 am
by chad
I believe the 0.6 VM has the crazyflie2 branch checked out by default. Crazyflie 2 firmware is on separate branch and has not yet been merged into master.

In Eclipse, you can right-click the "crazyflie-firmware" project in the "Project Explorer" section of the main window and go to the "Team" menu item near the bottom of the menu. Select the "Switch To" item and finally choose "master." Run the "clean" target, then run the "Make CLOAD" target, and finally "Flash using radio" and your firmware should work.

Let us know how it goes. :)
Screen Shot 2015-01-23 at 12.10.14 AM.png

Re: CrazyFlie not working with default firmware in VM 0.6

Posted: Fri Jan 23, 2015 11:01 am
by zerko
Thank you. I changed the branch I think it will works better :-P

But now I can't build the target "Flash using radio" because it failed with:

Code: Select all

Restart the Crazyflie you want to bootload in the next  10 seconds ...  done!
Connected to bootloader on Crazyflie Nano Quadcopter (1.0) (version=0x1)
Target info: stm32 (0xFF)
Flash pages: 128 | Page size: 1024 | Buffer pages: 10 | Start page: 10
118 KBytes of flash avaliable for firmware image.
Not an archive, must supply one target to flash
:(

Re: CrazyFlie not working with default firmware in VM 0.6

Posted: Fri Jan 23, 2015 12:08 pm
by zerko
I succed to deploy the firmware with the cfclient and bootloader, but I lost some time do to it this way :)

Re: CrazyFlie not working with default firmware in VM 0.6

Posted: Fri Jan 23, 2015 7:18 pm
by chad
I think that issue has been fixed in master. You can update the git repository. In the Terminal:

Code: Select all

cd ~/projects/crazyflie-firmware
git pull
I think there's also a shell script on the desktop that will update all repository clones. I'm not sure if it changes the branch you're on or not and I don't have the VM here in front of me so I can't check so you might want double check the branch after you run the script:

Code: Select all

cd ~/projects/crazyflie-firmware
git branch
# master should be highlighted