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.
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.
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.
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.
Always backup your files before updating CodeBug Connect.
To update CodeBug, follow these steps:
From a terminal (either over USB serial or via the onboard IDE) enter the following
import remote_manage remote_manage.reboot_into_update()
read and follow the instructions displayed. Enter
When prompted, remove the power.
Wait for 2 seconds and then reconnect power.
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.
Once network has been found CodeBug Connect will indicate successful WiFi connection.
CodeBug Connect will attempt to connect to the update server and indicate if successful.
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.
CodeBug Connect will process the new system files, and if successful, display a green smile for a few seconds before restarting.
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.
In update mode, USB Drive and the on-board IDE modes are not available.
WiFi connection failed (e.g. password error)
Could not find any suitable WiFi to connect to