How to flash crazeflie firmware with uwb deck onboard

All discussions related to the Loco Positioning system
Post Reply
chuhao
Beginner
Posts: 27
Joined: Sat Apr 29, 2017 6:25 am

How to flash crazeflie firmware with uwb deck onboard

Post by chuhao »

Hi

I followed the wiki page to flash firmware for "crazeflie + uwb deck".
crazeflie with deck, hardware connection
crazeflie with deck, hardware connection
When connected to PC, its device name can be found,
Bus 002 Device 002: ID 8087:8000 Intel Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:8008 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 017: ID 0483:df11 STMicroelectronics STM Device in DFU Mode
Bus 003 Device 003: ID 062a:4101 Creative Labs Wireless Keyboard/Mouse
Bus 003 Device 002: ID 1b1c:1b36 Corsair
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
The firmware is compiled successful. Then, I tried

Code: Select all

sudo dfu-util -d 0483:df11 -a 0 -s 0x08004000 -D cf2.bin

Code: Select all

sudo dfu-util -d 0483:df11 -a 0 -D cf2.dfu
It shows,
dfu-util 0.8

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

Opening DFU capable USB device...
ID 0483:df11
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 2048
DfuSe interface name: "Internal Flash "
file contains 1 DFU images
parsing DFU image 1
image for alternate setting 0, (1 elements, total size = 160900)
parsing element 1, address = 0x08004000, size = 160892
Download [=========================] 100% 160892 bytes
Download done.
done parsing DfuSe file
The crazeflie has one blue LED(M2) blink during the entire process. There isn't other LED signal showed.
I'm not sure whether firmware is downloaded correct.

Since my crazyradio PA doesn't work at the moment, I can't check its flying.

Thanks
Chuhao
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: How to flash crazeflie firmware with uwb deck onboard

Post by arnaud »

You are flashing using the DFU mode which is intended as a recovery mode mainly, the preferred way is to flash using the radio bootloader with make cload. It is normal that in DFU mode no other LED are light-up.

Your console copy-paste shows that the programming has been done successfully. You can then reset the Crazyflie by pushing the power switch or power-cycling the board (ie. remove USB and battery and plug back the battery). If your flashing worked well you should see a normal startup sequence (https://www.bitcraze.io/getting-started ... -2-0/#test).
Post Reply