Page 1 of 1

Update firmware and connect fail

Posted: Sat May 11, 2013 2:18 pm
by tzulan611126
I try the firmware update process on my CF and my client can never connect to to my CF again.
I update the firmware version cflie-2013.4. The update seems to be successful except I check the box "Verify flash".
Do you have any idea?

Johnson

Re: Update firmware and connect fail

Posted: Sat May 11, 2013 3:53 pm
by atomicdog
Did you use ... ?

Code: Select all

make CLOAD=1 DEBUG=0

Re: Update firmware and connect fail

Posted: Sat May 11, 2013 5:35 pm
by marcus
Hi Johnson,

Did you download the binary you are trying to flash from our Bitbucket or did you build it yourself?

/Marcus

Re: Update firmware and connect fail

Posted: Sun May 12, 2013 1:36 am
by tzulan611126
I tested on both binary (cflie-2013.4.bin) and self-build(hg pull && hg update -C 2013.4 && make CLOAD=1 DEBUG=0).
Both of them can't connect to client. Finally, I restore firmware back to cflie_ProductionV2.bin and CF can back to normal again.

Re: Update firmware and connect fail

Posted: Sun May 12, 2013 4:23 pm
by marcus
tzulan611126 wrote:I tested on both binary (cflie-2013.4.bin) and self-build(hg pull && hg update -C 2013.4 && make CLOAD=1 DEBUG=0).
Both of them can't connect to client. Finally, I restore firmware back to cflie_ProductionV2.bin and CF can back to normal again.
When you say that the Crazyflie cannot be connected do you mean that it doesn't show up when scanning or that when you connect to it that doesn't work?

There's a bug (documented here) that might hang the Crazyradio after you have bootloaded and flashed new firmware to the Crazyflie.

Could you try to bootload and flash the cflie-2013.4.bin (you don't need to use "Verify"). After that has been done then close the client, take out/insert the Crazyradio and restart the client. Can you find the Crazyflie and connect now?

/Marcus

Re: Update firmware and connect fail

Posted: Mon May 13, 2013 9:29 pm
by mrb0y
I'm fearful of uploading a change that was built locally. Is there something in place that will keep a bad compile from bricking the crazyflie?

Re: Update firmware and connect fail

Posted: Tue May 14, 2013 5:05 pm
by TheFrog4u
yes, the bootloader should not be able to overwrite itself, so normaly you should always be able to flash a working binary.. but better one of the bitcraze team members confirms that :)
@tzulan611126: Did you solve you issue with flashing the new firmware?

Re: Update firmware and connect fail

Posted: Tue May 14, 2013 5:25 pm
by marcus
mrb0y wrote:I'm fearful of uploading a change that was built locally. Is there something in place that will keep a bad compile from bricking the crazyflie?
You can't brick the Crazyflie just updating the firmware since the bootloader will not allow overwriting of the pages that it's in.

/Marcus

Re: Update firmware and connect fail

Posted: Tue May 21, 2013 11:40 am
by tzulan611126
Yes, this problem was solved. I re-plugin the crazyradio several times after firmware update and crazyflie was connected.