Skip to main content

Site Navigation

Your Account

Choose Language

Help

Revision to Installing and Updating Firmware

Tony

 
 
Note: some updates to the main firmware may require an update to the a compatible WiFi server firmware version as well, and vice versa. See the [[Updating WiFi firmware or DuetWebControl files]] section below which explains how on how to do this. '''If you download more than just the main firmware (DuetWiFiFirmware.bin) then please read the Updating more than one firmware at a time section below before proceeding as the firmware needs to be updated in a specific order. '''
Note: some updates to the main firmware may require an update to the a compatible WiFi server firmware version as well, and vice versa. See the [[Updating WiFi firmware or DuetWebControl files]] section below which explains how on how to do this. '''If you download more than just the main firmware (DuetWiFiFirmware.bin) then please read the Updating more than one firmware at a time section below before proceeding as the firmware needs to be updated in a specific order. '''
 
Check you have [https://github.com/dc42/RepRapFirmware/releases|downloaded the correct firmware] before installing it. The DuetWiFiFirmware.bin file should be the same size as shown on the github (currently about 300 KB in size).
 
You will need to do a simultaneous installation of DuetWiFiFirmware-1.18.2.bin and DuetWiFiServer-1.03ch.bin. You should not need to re-install DuetWebControl.bin because it should still be resident on the WiFi module. You do not need to roll back the Windows USB driver, because the newer driver versions are compatible with older firmware versions too.
 
== How to recover if the main firmware and WiFi firmware versions get out of step on your Duet WiFi ==
 
If you install incompatible main firmware (DuetWiFiFirmware.bin) and WiFi server (DuetWiFiServer.bin) versions, then you will not be able to connect over WiFi, and when the WiFi module is enabled you might not be able to communicate via USB either. Here's how to recover.
 
=== Connect via USB ===
 
* Take the SD card out of the Duet and put it in an adapter connected to your PC.
* Use Notepad++ or another text editor to put a semicolon character at the start of the M552 line in file /sys/config.g so that the main firmware does not attempt to enable the WiFi module at startup.
* Copy the versions of DuetWiFiFirmware.bin and DuetWiFiServer.bin into /sys on the SD card. They must have exactly those filenames, so if the files you downloaded had the version number included in the filename, then you will need to rename them.
* Safely remove or eject the SD card and put it back in the Duet.
* Connect the Duet to your PC via USB. If you have any high-current 5V devices connected to your Duet (e.g. PanelDue with a 7" screen, or servos) then you will also need to supply VIN power; otherwise USB power should suffice.
* If you are using a Windows PC, make sure that the Duet device driver installed on it is up to date. later versions of the driver work with old firmware versions too, but older drivers versions may not work with later firmware.
* If you are using a Windows PC, open Device Manager and expand Ports (COM and LPT). If you are using Linux or Mac, use the corresponding tools for those platforms instead.
* Hopefully you will see "Duet 3D Printer electronics" and you can proceed to the next step.
* If instead you see "Bossa port" then you have pressed the Erase button, and you will need to install new main firmware via USB. See Fallback procedure #3 higher up.
* If you see no port at all, go to [guide|2|what to do if your Duet or Duet WiFi won't respond].
 
=== Update main firmware, if needed ===
 
* Run M115 from pronterface or YAT to check what main firmware you are running.
* If it is not the version you want, run M997 S0 to install the version you copied to the SD card. The USB port will disconnect when the upgrade starts. After about half a minute, the Duet port should re-appear in Device manager and you can reconnect Pronterface or YAT.
* Sometimes Windows gets confused by the port disappearing and reappearing. So if Windows gives an error message or the port doesn't reappear within one minute, try plugging the Duet into another USB port, or reboot the PC.
 
=== Upgrade WiFi firmware, if needed ===
 
* If you are running main firmware 1.19 or later, send M552 S0 to start the WiFi module. If you are running main firmware 1.18 or earlier, send M552 S1.
* If the firmware responds with an error message, or it doesn't respond at all even after one minute, then the WiFi firmware is incompatible with the main firmware and needs to be reinstalled. Otherwise, send M122 and look at the WiFi firmware version reported, so see if you have the correct version installed.
* To install the WiFi firmware that you copied to the SD card, send command M997 S1.

To undo the changes made by this version, click 'Revert Changes.' This will automatically restore the previous version of this guide.

Revert Changes