Page 1 of 1

CF2-Firmware-Dfu: Flashed without any issues

Posted: Mon Dec 22, 2014 9:11 am
by lxrocks
Hi
I thought I would share this as it took a while to get the CF2 into dfu mode though. Mostly because the switch is so small I had no idea if I was pressing it on or not :) I was also worried the switch might break.

Because I was having issues getting it into DFU mode I ran dfu-util -l in a loop until I saw Found DFU: [0483:df11] in the output. I now know that only the M2 Blue led will flash as it goes into DFU mode. Once the switch is released, it seems to go on solid, then slowly starts to blink getting quicker until stays at a steady blink.

eg

Code: Select all

while sleep 2
do
  dfu-util -l | egrep -i "Found DFU:"
done
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/04*016Kg,01*064Kg,07*128Kg"
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=1, name="@Option Bytes /0x1FFFC000/01*016 e"
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=2, name="@OTP Memory /0x1FFF7800/01*512 e,01*016 e"
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=3, name="@Device Feature/0xFFFF0000/01*004 e"
This is what the dfu-util output looked like when I ran the flash command.
sudo dfu-util -d 0483:df11 -a 0 -D Crazyflie2_2014.12.0.dfu
dfu-util 0.7

Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2012 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org

Filter on vendor = 0x0483 product = 0xdf11
Opening DFU capable USB device... ID 0483:df11
Run-time device DFU version 011a
Found DFU: [0483:df11] devnum=0, cfg=1, intf=0, alt=0, name="@Internal Flash /0x08000000/04*016Kg,01*064Kg,07*128Kg"
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuERROR, status = 10
dfuERROR, clearing status
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
Dfu suffix version 11a
DfuSe interface name: "Internal Flash "
file contains 1 DFU images
parsing DFU image 1
image for alternate setting 0, (1 elements, total size = 75120)
parsing element 1, address = 0x08004000, size = 75112
.....................................
done parsing DfuSe file
For some reason, I was not able to use the bootloader/radio in the cfclient.

Re: CF2-Firmware-Dfu: Flashed without any issues

Posted: Mon Dec 22, 2014 2:07 pm
by tobias
The radio bootloader instruction are not really up to date. Working on them now so let's hope it works with the right instructions.

Re: CF2-Firmware-Dfu: Flashed without any issues

Posted: Mon Dec 22, 2014 2:37 pm
by tobias
I've updated the instructions now if you would like to try.

Re: CF2-Firmware-Dfu: Flashed without any issues

Posted: Tue Dec 23, 2014 7:42 am
by lxrocks
Thanks I will give it a try. I am still struggling with my 'fat-fingers' to push that button and know that it has made contact :)