Skip to main content

Site Navigation

Your Account

Choose Language

Help

Revision to Installing and Updating Firmware

David Crocker

** When the write completes, press Verify
** It is also possible to use the command line version (bossac) with this command line (replace COMxx by the correct COM port number):[br]
 
[code]bossac --port=COMxx -b -U -e -w -v path\Duet2CombinedFirmware.bin -R[/code]
 
If you install incompatible main firmware (Duet2CombinedFirmware.bin or 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 USBCopy files to the SD card ===
=== Connect via USBCopy files to the SD card ===
 
* 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 (or Duet2CombinedFirmware.bin)Duet2CombinedFirmware.bin and DuetWiFiServer.bin you want to use 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. Note, if your existing firmware is 1.21 or earlier then you will also need a second copy of Duet2CombinedFirmware.bin renamed to DuetWiFiFirmware.bin, also in /sys.
* Also copy the latest iap4e.bin file into /sys.
* Delete or rename the existing /www folder on the SD card, and create a new one.
* Unzip the contents of your chosen DuetWebControl.zip file into that new /www folder. When done, inside /www there should be subfolders css, fonts and js.
* Copy the versions of DuetWiFiFirmware.bin (or Duet2CombinedFirmware.bin)Duet2CombinedFirmware.bin and DuetWiFiServer.bin you want to use 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. Note, if your existing firmware is 1.21 or earlier then you will also need a second copy of Duet2CombinedFirmware.bin renamed to DuetWiFiFirmware.bin, also in /sys.
* Also copy the latest iap4e.bin file into /sys.
* Delete or rename the existing /www folder on the SD card, and create a new one.
* Unzip the contents of your chosen DuetWebControl.zip file into that new /www folder. When done, inside /www there should be subfolders css, fonts and js.
* Safely remove or eject the SD card and put it back in the Duet.
 
=== Connect via USB ===
 
* 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. laterLater 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, make sure that the Duet device driver installed on it is up to date. laterLater 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.
 
* 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. If you are using a recent version of iap4e.bin then the Diag LED on the Duet will flash while the firmware is being installed. After about half a minute, the Diag LED will stop flashing and the Duet port should re-appear in Device manager andmanager, then you can reconnect Pronterface or YAT.
* 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. If you are using a recent version of iap4e.bin then the Diag LED on the Duet will flash while the firmware is being installed. After about half a minute, the Diag LED will stop flashing and the Duet port should re-appear in Device manager andmanager, then 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.
 

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

Revert Changes