dfu-util for upgrade

Post here to get support
Post Reply
sub7
Beginner
Posts: 19
Joined: Sun Dec 28, 2014 6:57 pm

dfu-util for upgrade

Post by sub7 »

Hello,

I have do a mistake
sudo dfu-util -d 0483:df11 -a 0 -s 0x08000000 -D cflie.bin
I think that i have smashed the nrf

The led M2 is alone to blink
I can see 3 tempo by pushing differently on the power button
I cannot push a new bin because any usb is detected

Anyone have an idee to have a correct CF ?

On CF2 http://www.bitcraze.se/2014/11/crazyfli ... r-and-usb/
I need the debugger ?

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

Re: dfu-util for upgrade

Post by arnaud »

Hi,

You cannot 'smash' the NRF with DFU. At least not until we implement a way to flash the NRF from the STM. In fact the piece of code that boots the STM32 in DFU mode cannot be reprogrammed by any bootloader (only from SWD/debuger).

You did flash the firmware over the bootloader. You can recover your Crazyflie by re-flashing the STM bootloader and then flashing the firmware again. I tested the procedure here and it works (I flashed the firmware like you did and then fixed it). To start in DFU mode press the button before plugging the USB port.

I uploader the bootloader binary file on github: https://github.com/bitcraze/crazyflie2- ... es/tag/1.0

Code: Select all

#Flash the bootloader:
sudo dfu-util -d 0483:df11 -a 0 -s 0x08000000 -D cf2loader-1.0.bin
#Flash the firmware
sudo dfu-util -d 0483:df11 -a 0 -s 0x08004000 -D cflie.bin
Note the loading address of the firmware, 0x08004000, it is loaded after the bootloader. If you flash our prebuild firmware the we created a .dfu file that already contains the right loading address.

I hope you soon get your CF2 working again.
sub7
Beginner
Posts: 19
Joined: Sun Dec 28, 2014 6:57 pm

Re: dfu-util for upgrade

Post by sub7 »

Thanks for your reply

I would like to reflash but
In dmesg or kern.log /lsusb I don't see at any moment the usb of my CF
i have try with 3 tempo and no result
sub7
Beginner
Posts: 19
Joined: Sun Dec 28, 2014 6:57 pm

Re: dfu-util for upgrade

Post by sub7 »

The usb of my Cf is not recognized anytime. I have try with all procedure
The M2 is blinking always and /var/log/kern.log say nothing

Do i need the SWD/debuger for flashing the CF2 and return to play with it ?
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: dfu-util for upgrade

Post by tobias »

When you do this make sure not to have the battery connected. Also hold the button while you are connecting the uUSB cable. There seems to be some issue with that the stm32f4 DFU bootloader doesn't start if it isn't done this way.
sub7
Beginner
Posts: 19
Joined: Sun Dec 28, 2014 6:57 pm

Re: dfu-util for upgrade

Post by sub7 »

I have already do without battery and also hold the button and power on the cf
nothing in lsusb or kern.log
If i push on the button again during 3 sec another led tempo is appending and again nothing in lsusb/kern.log (no usb found)

I have try with my notebook too, another usb cable but nothing, now the cf is nude and always nothing... :(
sub7
Beginner
Posts: 19
Joined: Sun Dec 28, 2014 6:57 pm

Re: dfu-util for upgrade

Post by sub7 »

The result is , i have broken the power button...
I have buy some parts last week (propeller,led,expansion board...) and now i can put in the trash ...

i have try with a 250 quad
Can i use my PA radio with the nrf http://www.amazon.de/gp/product/B00MLSR ... 7ZFQTB2LT4 on the new one ?
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: dfu-util for upgrade

Post by tobias »

Hi sub7,

Do you mind taking a picture of the broken power button? We have seen some cases now so we should investigate it further.

With some soldering skills the button can be replaced. Please see this tread.

The button works as a switch to ground so it is possible to use something else conductive to short it to ground, like a pair of tweezers you short the two pads with.
sub7
Beginner
Posts: 19
Joined: Sun Dec 28, 2014 6:57 pm

Re: dfu-util for upgrade

Post by sub7 »

Bonsoir :)

Thanks for the link
i go to buy new one.
https://www.dropbox.com/s/4dajyoaaud157 ... 9.jpg?dl=0
Post Reply