Updating CodeBug OS

Occasionally, we may release an update to the core system for CodeBug Connect. While the update process is robust, it’s possible that without care you can corrupt the system files that make recovery slightly more difficult.

Danger

We strongly recommend you read and make sure you understand all these instructions before perfoming an update.

The update process is done over the Internet so you must have setup a WiFi connection that provides Internet access to your CodeBug Connect.

Warning

You must store a WiFi SSID and password before attempting to update. Once you set CodeBug Connect into update mode, you cannot easily setup the WiFi.

Update Process

Make sure you have stored your WiFi access point and password in your Codebug Connect. Before attempting to upgrade you should double check CodeBug can successfully connect to your WiFi.

Caution

Always backup your files before updating CodeBug Connect.

To update CodeBug, follow these steps:

  1. From a terminal (either over USB serial or via the onboard IDE) enter the following

import remote_manage
remote_manage.reboot_into_update()
  1. read and follow the instructions displayed. Enter yes if appropriate.

  2. When prompted, remove the power.

  3. Wait for 2 seconds and then reconnect power.

  4. CodeBug Connect will flash a light yellow searching for WiFi. Note the symbol is backwards compared with CodeBug Connect’s normal searching for WiFi symbol.

    Scanning for WiFi1 Scanning for WiFi2 Scanning for WiFi3
  5. Once network has been found CodeBug Connect will indicate successful WiFi connection.

    WiFi connected
  6. CodeBug Connect will attempt to connect to the update server and indicate if successful.

  7. Beginning from the top left, the LED display will fill with yellow dots to indicate download process. This sometimes has a slow start so be patient.

  8. CodeBug Connect will process the new system files, and if successful, display a green smile for a few seconds before restarting.

Troubleshooting

If the update process fails, the LEDs show the failure reason. If no data was downloaded then on next reboot CodeBug Connect will return to run mode with the old system files. However, once a download commences the system files will have been over-written and CodeBug Connect will not boot until a successful update is achieved.

Note

In update mode, USB Drive and the on-board IDE modes are not available.

  • WiFi connection failed (e.g. password error)

WiFi connection failed
  • Could not find any suitable WiFi to connect to

could not find any suitable WiFi