Skip to content

Commit

Permalink
(bitcraze#396) updated the flashing firmware and moved cold boot to s…
Browse files Browse the repository at this point in the history
…eperate page
  • Loading branch information
knmcguire committed Mar 25, 2021
1 parent 09621a9 commit 5e06084
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 22 deletions.
1 change: 1 addition & 0 deletions docs/_data/menu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- {page_id: cfheadless}
- {page_id: inputdevices}
- {page_id: raspberrypi}
- {page_id: recovery-mode}
- title: Functional areas
subs:
- {page_id: cfloader}
Expand Down
Binary file added docs/images/bootloader-recovery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/images/crazyflie_bootloading.png
Binary file not shown.
Binary file added docs/images/firmware-upgrade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions docs/userguides/recovery-mode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: Recovery firmware flashing
page_id: recovery-mode
---

_Only use this type of firmware flashing if you crazyflie is not booting up properly. Check [the cfclient userguide](/docs/userguides/userguide_client.md) for the official instructions._

For updating the Crazyflie firmware there\'s the possibility to enter
bootloader mode and flash [new
firmware](https://github.com/bitcraze/crazyflie-release/releases) from within the
client. The bootloader mode is accessed from the menu
*Crazyflie-\>Bootloader*. If there is any problem during the flashing or
a wrong firmware is flashed the process can just be started again.

![CFclient bootloading](/docs/images/bootloader-recovery.png)

To update the firmware in the Crazyflie 2.X do the following:

- Make sure that the Crazyflie is disconnected from the client and
powered off.
- Go to the menu *Crazyflie-\>Bootloader*
- Select the \"Cold boot (recovery)\" tab in the dialog.
- Hold the button for about 3 seconds when turning
it on until the blue LED M2 starts to blink to get into bootloader
mode. If a wrong nRF51 firmware has been flashed you might have to
start from an un-powered state. Then hold the button and connect
power.
- Click \"Initiate bootloader cold boot\"
- Select the latest release from the drop down menu or select it if you have downloaded it from the [Github release page](https://github.com/bitcraze/crazyflie-release/releases).
- Press \"Program\" and wait (do not restart the crazyflie untill it is finsished.)
- Press \"Restart in firmware mode\"

_Be aware that the Lighthouse FPGA will not be updated in this mode, so please use the [the cfclient userguide](/docs/userguides/userguide_client.md) after you have recovered crazyflie._
33 changes: 11 additions & 22 deletions docs/userguides/userguide_client.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,35 +70,24 @@ client.

### Firmware upgrade

For updating the Crazyflie firmware there\'s the possibility to enter
bootloader mode and flash [new
firmware](https://github.com/bitcraze/crazyflie-release/releases) from within the
client. The bootloader mode is accessed from the menu
*Crazyflie-\>Bootloader*. If there is any problem during the flashing or
a wrong firmware is flashed the process can just be started again.
For updating the Crazyflie firmware you can keep being connected to the crazyflie. This will open up a seperate dialog that will guide you through the process.

![CFclient bootloading](/docs/images/crazyflie_bootloading.png)
![CFclient bootloading](/docs/images/firmware-upgrade.png)

To update the firmware in the Crazyflie 2.X do the following:

- Make sure that the Crazyflie is disconnected from the client and
powered off
- Go to the menu *Crazyflie-\>Bootloader*
- Hold the button for about 3 seconds when turning
it on until the blue LED M2 starts to blink to get into bootloader
mode. If a wrong nRF51 firmware has been flashed you might have to
start from an un-powered state. Then hold the button and connect
power.
- Click \"Initiate bootloader cold boot\"
- Press \"Browse\" and select the file you want to flash and whether you want
to flash both the mcu's or just one of them. (zip-file is for both).
- Press \"Program\" and wait
- Press \"Restart in firmware mode\"

To check the firmware version, under the *View* menu, open up
*Tabs-\>Console* tab and look at the output when connecting to the
- Connect to the crazyflie in this dialog, if it is not already connected in the flighttab.
- Select the latest release from the drop down menu or select it if you have downloaded it from the [Github release page](https://github.com/bitcraze/crazyflie-release/releases).
- Click \"Program\" and wait for both the STM and NRF to be flashed.
- If your crazyflie has a lighthouse deck, the lighthouse deck fpga will be updated too (>= release 2021.03)
- Your crazyflie will automatically restart a couple of times.
- Do not touch or restart your crazyflie untill all flashing is done and you see \"status: idle\" at the bottom.
- To check the firmware version, under the *View* menu, open up *Tabs-\>Console* tab and look at the output when connecting to the
Crazyflie 2.X.

If you accidently restarted your crazyflie during flashing or anything else happend which caused your crazyflie to not start up properly, follow [the instructions for recovery mode](/docs/userguides/recovery-mode.md).

### Firmware configuration

It is possible to set another channel to communicate with the Crazyflie 2.X. It can be wise to do this if there exist other wireless
Expand Down

0 comments on commit 5e06084

Please sign in to comment.