Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    M997: Firmware binary is not valid for this electronics [SOLVED]

    Scheduled Pinned Locked Moved Solved
    Firmware installation
    solved
    3
    9
    426
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • SamanthaJaneyCakeundefined
      SamanthaJaneyCake
      last edited by SamanthaJaneyCake

      Morning!
      I've been struggling to update my Duet 2 WiFi from RRF 3.3 to 3.5.
      I did a fresh SD using the RRF Config website but despite having selected 3.5 it defaulted to 3.1.1.
      So I managed to manually get it up to 3.3 with the aim of getting to 3.5 in the next step.

      M115
      FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2021-06-15 21:45:03
      

      DWC V3.5.1

      No firmware files in 0:/sys
      0:/firmware contains the following:

      • Duet2and3firmware (directory, V3.5.2)
      • __MACOSX
      • DuetWiFiServer.bin
      • Duet2CombinedIAP.bin
      • Duet2CombinedFirmware.bin
      • Duet2_sdiap32_WiFiEth.bin

      When I run M997 S0 I get this error:

      M997: Firmware binary "0:/firmware/Duet2CombinedFirmware.bin" is not valid for this electronics
      

      Any ideas on what I can do to fix this? Thanks for all the help!

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @SamanthaJaneyCake
        last edited by

        @SamanthaJaneyCake try uploading Duet2CombinedFirmware.bin again.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        SamanthaJaneyCakeundefined 1 Reply Last reply Reply Quote 0
        • SamanthaJaneyCakeundefined
          SamanthaJaneyCake @dc42
          last edited by

          @dc42 thanks for the suggestion! I just tried that with a fresh download of Duet2CombinedFirmware.bin version 3.5.2 and uploaded to 0:/firmware.
          It uploads and asks if I want to install the file, which I agree to. After reconnecting I queried with M115 and got this back:

          M115
          FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2021-06-15 21:45:03
          

          I then tried M997 and M997 S0 both times returning the same thing. I've deleted out the Duet2and3firmware directory and retried.

          Interestingly it hasn't complained about the file not being valid, but hasn't actually updated by the look of things.

          LogFile:

          28/07/2024, 20:43:34	M115
          FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2021-06-15 21:45:03
          28/07/2024, 20:43:10	Upload of Duet2CombinedFirmware.bin successful after 2s
          28/07/2024, 20:42:54	Successfully deleted Duet2and3Firmware
          28/07/2024, 20:42:49	Successfully deleted 17 items
          28/07/2024, 20:42:25	Successfully deleted Duet2CombinedFirmware.bin
          28/07/2024, 20:41:51	M115
          FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2021-06-15 21:45:03
          28/07/2024, 20:41:38	M997 S0M115
          28/07/2024, 20:41:22	M997 S0
          28/07/2024, 20:41:05	M115
          FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2021-06-15 21:45:03
          28/07/2024, 20:40:43	Upload of Duet2CombinedFirmware.bin successful after 1s
          28/07/2024, 20:39:03	M115
          FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2021-06-15 21:45:03
          28/07/2024, 20:38:55	Connection established
          28/07/2024, 20:38:44	M997
          28/07/2024, 20:38:25	M115
          FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.3 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2021-06-15 21:45:03
          28/07/2024, 20:37:50	Upload of Duet2CombinedFirmware.bin successful after 2s
          28/07/2024, 20:37:06	Successfully deleted Duet2CombinedFirmware.bin
          
          dc42undefined 1 Reply Last reply Reply Quote 0
          • dc42undefined
            dc42 administrators @SamanthaJaneyCake
            last edited by dc42

            @SamanthaJaneyCake I suggest you download the 3.3 version of the IAP file for Duet 2 here https://github.com/Duet3D/RepRapFirmware/releases/download/3.3/Duet2_SDiap32_WiFiEth.bin, copy it into /firmware on your SD card, and run M997 again.

            Do you have a PanelDue connected to the board? If so, and the baud rate is set to 57600 then then you can watch the progress of the firmware update on it.

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            SamanthaJaneyCakeundefined 1 Reply Last reply Reply Quote 1
            • SamanthaJaneyCakeundefined
              SamanthaJaneyCake @dc42
              last edited by SamanthaJaneyCake

              @dc42 Good afternoon and thanks!
              I deleted out the current IAP and uploaded the one linked (thanks). M997 took longer to execute this time and upon running M115 I am happy to report she's now on RRF 3.5.2!

              EDIT: I am however getting the following error:

              Error in macro line 47 while starting up: exactly one of EFHJPSR must be given
              

              I can't seem to find reference to this anywhere.

              dc42undefined 1 Reply Last reply Reply Quote 0
              • dc42undefined
                dc42 administrators @SamanthaJaneyCake
                last edited by

                @SamanthaJaneyCake what command do you have on line 47 of config.g ?

                Duet WiFi hardware designer and firmware engineer
                Please do not ask me for Duet support via PM or email, use the forum
                http://www.escher3d.com, https://miscsolutions.wordpress.com

                SamanthaJaneyCakeundefined 1 Reply Last reply Reply Quote 0
                • SamanthaJaneyCakeundefined
                  SamanthaJaneyCake @dc42
                  last edited by

                  @dc42 Sorry, got there myself with some playing around when it got more verbose and pointed me towards config.g and now sorting my config properly. That's irrelevant to this topic so I'll mark it as solved ◡̈

                  o_lampeundefined 1 Reply Last reply Reply Quote 0
                  • dc42undefined dc42 marked this topic as a question
                  • dc42undefined dc42 has marked this topic as solved
                  • o_lampeundefined
                    o_lampe @SamanthaJaneyCake
                    last edited by o_lampe

                    @SamanthaJaneyCake Now I wonder, if this FW update issue was also the cause for your "M3 command not working" problem with your spindle?

                    SamanthaJaneyCakeundefined 1 Reply Last reply Reply Quote 0
                    • SamanthaJaneyCakeundefined
                      SamanthaJaneyCake @o_lampe
                      last edited by SamanthaJaneyCake

                      @o_lampe it wasn’t, as it happens. I redid the firmware from scratch using the RRF configuration tool which gave a slightly different setup to the one I was working on when I asked the spindle question.
                      Ironically having fixed the issues I’m back to essentially my original spindle config.
                      What I’ve ended up doing to solve that original issue is break out heater3 (and 4 for the laser) and use those to PWM drive an external MOS chip that level shifts the PWM to a breakout from the fan 5V… which is then the right level and “side” of the spindle controller to control it properly!

                      It seemed to work when I tried it at 9:00 last night but that’s my cutoff time for trusting my brain not to do something stupid so I’ll be doing more tests and checks this afternoon.

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post
                      Unless otherwise noted, all forum content is licensed under CC-BY-SA