Firmware woes...

Discussion in 'Getting Started' started by Paul Meyer, Jan 13, 2020.

  1. Paul Meyer

    Paul Meyer Well-Known Member

    Joined:
    Dec 18, 2019
    Messages:
    49
    Likes Received:
    8
    Got my TC pretty much built and ready to start testing. However, I think I screwed up...

    Before I finished my system, I wanted to get my Duet set up. USB connection, followed the duet instructions, got to the web interface. Following my standard procedure, I went ahead and installed the latest firmware, which happened to be 3.0. Whatever, sounds good, installed, went back to building my printer.

    All assembled, ready to connect. Problem #1: when I connect over ethernet I get javascript errors and "the webserver is disconnecting from your board". Ok, something is messed up with the upgrade, no problem downgrade the firmware. Except the main firmware install path is through the webserver that won't connect...

    I explored alternative 'firmware downgrade' paths, but I think the 3.0 firmware expects different files for the upgrade mechanism, and therefore doesn't seem to recognize the 2.x firmware files.

    Fine, so rather than downgrade, see if I can figure out the javascript error. Poke around on the SD card, open up the offending dwc.js. Before I get to far, I realize that the SD card came with pretty old version of dwc (duet web control). How about upgrading that? Head off to github, git-clone, compile, and install dwc 2.0.

    Success: I can no connect and have no javascript errors.

    However, I'm still on 3.0 firmware now with no obvious path back to 2.x firmware, and all the configuration stuff assumes 2.x firmware. Uploading the 2.x bin files might work, but I'm nervous I'll brick my board.

    I see the other thread where dc42, nibbels, and others are attempting to get working TCs converted to 3.0. I'll follow that and see. It would have been nice to have a stable starting point, though.

    I may still downgrade if I can figure out how to make it work.

    Any suggestions on where I should go from here?

    Paul
     
  2. Paul Meyer

    Paul Meyer Well-Known Member

    Joined:
    Dec 18, 2019
    Messages:
    49
    Likes Received:
    8
    In case anybody runs into the same issue, giving my resolution here.

    I had the SD card that came with the duet. This contained DuetWebControl 1.26 (I think).

    I upgraded the board to firmware RepRap 3.0. This is not recommended yet (as the toolchanger macros and such need to be updated to be compatible with 3.0). I was not aware of this and didn't really think about it, just upgraded.

    The best way to downgrade was through the web interface. However, it appears that the old DWC 1.26 gives javascript errors with the latest firmware. Unclear why or if that was just me, but I wasn't able to keep the web interface connected.

    My solution was to download the latest DuetWebControl2.0 (https://github.com/chrishamm/DuetWebControl) and build it from source. I then plugged the SD card from the printer into my mac, delete the contents of the www/ directory, and copy over the DWC2 I had just built.

    I could now downgrade the firmware. This was done by:
    - download the file "Duet2CombinedIAP.bin" from the RepRapFirmware 3.0 release
    (https://github.com/dc42/RepRapFirmware/releases/tag/3.0)
    - upload this using the web interface into the "sys" tab
    - download the file "Duet2CombinedFirmware.bin" from the RRF 2.05 release
    (https://github.com/dc42/RepRapFirmware/releases/tag/2.05)
    - upload this using the web interface into the "sys" tab

    This last upload will ask if you want to update the firmware. Click yes and let it reboot. You should be good to go. You'll have the stable 2.05 firmware and the latest duetWebControl interface (which appears to work just fine with RRF2 firmware).
     
    mhe likes this.
  3. dc42

    dc42 Well-Known Member

    Joined:
    Aug 16, 2016
    Messages:
    466
    Likes Received:
    207
    For anyone else upgrading from 2.x to 3.0, I recommend you do it by uploading the zip file provided. This will ensure ensure that the latest Duet Web Control and IAP file are uploaded as well as the firmware.
     
    Paul Meyer and mhe like this.
  4. Paul Meyer

    Paul Meyer Well-Known Member

    Joined:
    Dec 18, 2019
    Messages:
    49
    Likes Received:
    8
    Thanks, dc. My mistake was following the duet3d instructions (https://duet3d.dozuki.com/Wiki/Installing_and_Updating_Firmware) which focus on just the .bin file and don't mention the full zip install approach.

    I have not yet tried this approach, but just to make it explicit for others:

    Go to: https://github.com/dc42/RepRapFirmware/releases
    Download: https://github.com/dc42/RepRapFirmware/releases/download/3.0/Duet2and3Firmware-3.0.zip

    Go to DuetWebControl on your board in your web browser (assuming it is working).
    -> go to the settings tab
    -> click upload files
    -> select the zip file downloaded above

    It should ask if you want to install it.

    From the github releases text: "Most users of Duet 2 and users of Duet 3 in standalone mode should be able to upgrade just by uploading file Duet2and3Firmware-3.0.zip into /sys on the SD card via Duet Web Control."
     
  5. Clarin

    Clarin Member

    Joined:
    Jan 10, 2020
    Messages:
    8
    Likes Received:
    0
    Newbie needs help!!!
    Hello, I inadvertently installed the RepRap 3.0 and I am having a mess. Can someone show me a working config?
    Thanks

    Board: Duet 2 Ethernet (2Ethernet)
    Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 3.01-RC11 (2020-04-30b3)
    and 4 Hemera
     
  6. dc42

    dc42 Well-Known Member

    Joined:
    Aug 16, 2016
    Messages:
    466
    Likes Received:
    207
  7. Nibbels

    Nibbels Well-Known Member

    Joined:
    Dec 12, 2019
    Messages:
    165
    Likes Received:
    32
    Here is my config: https://github.com/Nibbels/e3d-toolchanger-config
    This works with RC11. It is my special config with my personal special changes and no warranty at all.

    - Be aware that only one Hotend is a Hemera! -> T2. You would have to copy the hermea settings to T0, T1, T3.
    - And be aware that I changed the ports where the steppers are connected to other ones. (config.sys https://github.com/Nibbels/e3d-tool...f31e5420e3cca68b946d165f45fc/sys/config.g#L57 and see at the direction settings prior: https://github.com/Nibbels/e3d-tool...f31e5420e3cca68b946d165f45fc/sys/config.g#L43)
    - The auto leveling mesh scan only works if you remove https://github.com/Nibbels/e3d-tool...f31e5420e3cca68b946d165f45fc/sys/config.g#L64 M558 P8 C"zstop" H5 F120 T10000 A5 S0.01
    or change it into A1 S0.03. I dont have a macro yet.

    So do not copy and paste that /sys folder into your printer! ;)

    For RRF3.01 RC11: https://github.com/dc42/RepRapFirmware/blob/v3-dev/WHATS_NEW_RRF3.md @Upgrade Notes
    Please have a lock into all toolchange files if you use RC11. Because there is a conditional IF included so that the tool change files are only executed when the homing is present.
     

Share This Page