How Can I Download My Board's Original Firmware From Scratch?
-
I'm new to the Duet world. To cut a long story short, when trying to update my Duet 2's firmware, everything stopped working. I have resorted to wiping the board's SD card and I am now trying to reinstall the original v2.05.1 firmware that came with it.
I've looked at the guides on file structures, and I've visited about 100 GitHub pages. I would really like to be able to download one zip file that would at least get the board talking with YAT again. If someone could show me in the direction of such a thing, I would appreciate it a lot.
-
If it still has firmware on it, use YAT to try and connect to it and send it some commands. M115 will have it report what firmware is installed. It may already be 2.05.1 and all you need is the config files and DWC files on the SD card.
-
@frol2256 The firmware does not reside on the SD card. The firmware is loaded onto the Duet microcontroller itself, into flash memory. Wiping the SD card only removes the configuration, and the files for accessing the Duet over your network.
There are also two parts to the firmware on a Duet 2 WiFi board; RepRapFirmware, which is on the Duet 2 microcontroller, and DuetWiFiServer.bin, which is flashed to the WiFi module. Most likely, if you lost contact during a firmware update, it's the DuetWiFiServer part that didn't flash properly. It sounds like you may have subsequently deleted the firmware off the Duet as well.
If you can't even connect via YAT, then the firmware on the Duet has been deleted, then you will need to use Bossa to flash the firmware back onto the Duet board. You can't just upload it to the SD card. If you are set on going back to RRF 2.05.1, download "Duet2Firmware-2.05.1.zip" from https://github.com/Duet3D/RepRapFirmware/releases/tag/2.05.1 and extract it. The contents will be:
css (folder)
Duet2CombinedFirmware.bin
DuetMaestroFirmware.bin
DuetWiFiServer.bin
favicon.ico.gz
fonts (folder)
iap4e.bin
iap4s.bin
index.html.gz
js (folder)Flash the firmware by using the "Duet2CombinedFirmware.bin" file, and the instructions here: https://docs.duet3d.com/User_manual/RepRapFirmware/Updating_firmware
After this, you should be able to connect to the Duet 2 via YAT, see https://docs.duet3d.com/en/How_to_guides/Getting_connected/Getting_connected_to_your_Duet
Next, rebuild the SD card contents using the guide here: https://docs.duet3d.com/User_manual/RepRapFirmware/SD_card#creating-the-file-structure. From the zip file, copy the following to the \www folder you create:
css (folder)
favicon.ico.gz
fonts (folder)
index.html.gz
js (folder)Finally, you may need to reflash the WiFi firmware to get the WiFi module working again. Copy the following to the /sys folder you create:
Duet2CombinedFirmware.bin
DuetWiFiServer.bin
iap4e.binConnect via YAT, and send
M997 S1
to flash the WiFi module firmware. Start the WiFi module after flashing withM552 S1
. If you had WiFi working before, it should still remember the SSID and connect, and give you the IP address to connect to. If not, follow the 'Getting connected' guide here: https://docs.duet3d.com/en/How_to_guides/Getting_connected/Getting_connected_to_your_DuetIan
-
@droftarts Thanks for your reply! Before I try flashing the .bin to the board, I thought I should clear something up. The documentation tells me only to flash the firmware using Bossa if the device is not properly recognised in the Windows Device Manager. Under COM Ports, the device is correctly labelled as "Duet 2 WiFi 3D printer controller...", so should I still go about this?
-
If it still has firmware on it, use YAT to try and connect to it and send it some commands. M115 will have it report what firmware is installed. It may already be 2.05.1 and all you need is the config files and DWC files on the SD card.
-
undefined frol2256 has marked this topic as solved