CrazyFlie not working with default firmware in VM 0.6

Post here to get support
Post Reply
zerko
Beginner
Posts: 4
Joined: Wed Jan 21, 2015 7:51 am

CrazyFlie not working with default firmware in VM 0.6

Post 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,
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: CrazyFlie not working with default firmware in VM 0.6

Post by chad »

Hi!

Do you have Crazyflie 1.0 or Crazyflie 2.0?
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
zerko
Beginner
Posts: 4
Joined: Wed Jan 21, 2015 7:51 am

Re: CrazyFlie not working with default firmware in VM 0.6

Post by zerko »

Crazyflie 1.0
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: CrazyFlie not working with default firmware in VM 0.6

Post 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
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
zerko
Beginner
Posts: 4
Joined: Wed Jan 21, 2015 7:51 am

Re: CrazyFlie not working with default firmware in VM 0.6

Post 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
:(
zerko
Beginner
Posts: 4
Joined: Wed Jan 21, 2015 7:51 am

Re: CrazyFlie not working with default firmware in VM 0.6

Post by zerko »

I succed to deploy the firmware with the cfclient and bootloader, but I lost some time do to it this way :)
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: CrazyFlie not working with default firmware in VM 0.6

Post 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
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
Post Reply