Skip to main content

Site Navigation

Your Account

Choose Language

Help

Revision to Installing and Updating Firmware

David Crocker

 
* Download the main firmware file from https://github.com/dc42/RepRapFirmware/releases.:
** For Duet WiFi/Ethernet version 1.20 and earlier use DuetWiFiFirmware.bin for the Duet 2 Wifi, DuetEthernetFirmware.bin for the Duet 2 Ethernet.
** For Duet WiFi/Ethernet version 1.20 and earlier use DuetWiFiFirmware.bin for the Duet 2 Wifi, DuetEthernetFirmware.bin for the Duet 2 Ethernet.
** For version 1.21 or later (recommended) use Duet2CombinedFirmware.bin for Duet 2 Wifi or Ethernet
** For Duet Maestro use DuetMaestroFirmware.bin
* Verify that the downloaded firmware file has the correct size, as shown on the page you downloaded it from.
* Download and install Bossa 1.9.1 from https://github.com/shumatech/BOSSA/releases. Alternatively, download and install SAM-BA version 2.17 from here http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=Atmel%20SAM-BA%20In-system%20Programmer
* Download and install Bossa 1.9.1 from https://github.com/shumatech/BOSSA/releases. Alternatively, download and install SAM-BA version 2.17 from here http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=Atmel%20SAM-BA%20In-system%20Programmer
* Connect the Duet 2 to your PC via USB.
* Verify that the 5V and 3.3V LED are on before continuing.
* Erase the firmware on the Duet 2 by either:
** Pressing the '''Erase''' button for Duet WiFi/Ethernet pcb revisions 1.03 or earlier
** Jumpering the erase jumper for Duet Maestro or for Duet WiFi/Ethernet pcb revisions 1.04 and later.
** Pressing the '''Erase''' button for Duet WiFi/Ethernet pcb revisions 1.03 or earlier
** Jumpering the erase jumper for Duet Maestro or for Duet WiFi/Ethernet pcb revisions 1.04 and later.
 
[image|1035|align=center]
 
* then the '''Reset''' button (if one is present).
* Load Bossa or SAM-BA. It usually detects the correct COM port automatically. For
* If using Bossa:
** Check boxes Erase all, Lock, and Boot from Flash
** Browse to the '''Duet2CombinedFirmware.bin''' or '''DuetMaestroFirmware.bin''' file to be installed, then press Write.
** 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 using SAM-BA:
** For Duet
WiFi/Ethernet, select '''at91sam4e8-ek'''. For Maestro, select '''at91sam4s8-ek'''. Press '''Connect'''. A connection error will be reported if the wrong board is selected.
* Load Bossa or SAM-BA. It usually detects the correct COM port automatically. For
* If using Bossa:
** Check boxes Erase all, Lock, and Boot from Flash
** Browse to the '''Duet2CombinedFirmware.bin''' or '''DuetMaestroFirmware.bin''' file to be installed, then press Write.
** 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 using SAM-BA:
** For Duet
WiFi/Ethernet, select '''at91sam4e8-ek'''. For Maestro, select '''at91sam4s8-ek'''. Press '''Connect'''. A connection error will be reported if the wrong board is selected.
 
[image|422|align=center]
 
* In the Send File Name box enter or browse to the '''DuetWiFiFirmware.binDuet2CombinedFirmware.bin''' or '''DuetMaestroFirmware.bin''' file to be loadedinstalled, then press '''Send File''' (leave the '''Address''' at the default of 0x400000). On completion it will invite you to lock the region; press '''Yes'''.
*

**
If desired, press '''Compare sent file with memory'''.
*

**
Press the '''Execute''' button next to the '''Boot from Flash''' option in the Scripts box. Then exit SAM-BA.
* In the Send File Name box enter or browse to the '''DuetWiFiFirmware.binDuet2CombinedFirmware.bin''' or '''DuetMaestroFirmware.bin''' file to be loadedinstalled, then press '''Send File''' (leave the '''Address''' at the default of 0x400000). On completion it will invite you to lock the region; press '''Yes'''.
*

**
If desired, press '''Compare sent file with memory'''.
*

**
Press the '''Execute''' button next to the '''Boot from Flash''' option in the Scripts box. Then exit SAM-BA.
 
[image|423|align=center]
 
* Press '''Reset''' on the board or on boards that don't have this button, remove and restore 5V power (usually provided by the USB cable).
* You should now be able to connect via USB/Pronterface.

If you are unable to run SAM-BA (for example because you want to update the firmware from a Mac), you can alternatively use Bossa 1.8 (not an earlier version) from https://github.com/shumatech/BOSSA/releases. The interactive version (Bossa) does not work on high dpi screens, but you can still use the command line version (bossac). If you use the interactive version, you must check boxes Erase all, Lock, and Boot from Flash before pressing Write. If you use the command line version, try this command line:

[code]bossac --port=COMxx -b -U -e -w -v path\DuetWiFiFirmware.bin -R[/code]

Replace COMxx in the above by the COM port number (e.g. COM3) and replace path\DuetWiFiFirmware.bin to the path and name of the firmware file to install
USB/Pronterface or YAT.
* You should now be able to connect via USB/Pronterface.

If you are unable to run SAM-BA (for example because you want to update the firmware from a Mac), you can alternatively use Bossa 1.8 (not an earlier version) from https://github.com/shumatech/BOSSA/releases. The interactive version (Bossa) does not work on high dpi screens, but you can still use the command line version (bossac). If you use the interactive version, you must check boxes Erase all, Lock, and Boot from Flash before pressing Write. If you use the command line version, try this command line:

[code]bossac --port=COMxx -b -U -e -w -v path\DuetWiFiFirmware.bin -R[/code]

Replace COMxx in the above by the COM port number (e.g. COM3) and replace path\DuetWiFiFirmware.bin to the path and name of the firmware file to install
USB/Pronterface or YAT.
 
== Updating WiFi firmware or DuetWebControl files ==
'''Important:''' if you are also upgrading RepRapFirmware (which for the Duet 2 WiFi is DuetWiFiFirmware.bin for version 1.20 or earlier and Duet2CombinedFirmware.bin for 1.21 and later) you should normally upgrade that first.
 
'''Note''', this does not apply to the Duet 2 EthernetEthernet or Duet Maestro.
'''Note''', this does not apply to the Duet 2 EthernetEthernet or Duet Maestro.
 
=== Updating WiFi firmware ===
* 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) 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.
* Copy the versions of DuetWiFiFirmware.bin (or 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.
* 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.
* 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[guide|2|what to do if your Duet or Duet 2 Wifi won't respond].
* If you see no port at all, go to [guide|2|what[guide|2|what to do if your Duet or Duet 2 Wifi won't respond].
 
=== Update main firmware, if needed ===

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

Revert Changes