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

    1LC Toolboard FW mismatch - M997 fails to update D3 Mini+SBC pi4

    Scheduled Pinned Locked Moved Solved
    Firmware installation
    2
    7
    177
    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.
    • SputnikOC3dundefined
      SputnikOC3d
      last edited by

      Ive recently flashed a new SD card image for the SBC t oDuet FW 3.5.3

      Main board - duet mini 5+ - updated to 3.5.3 via M997
      DWC - showed up as 3.5.3 after 1st boot after new flashed SD
      DSF - showed up as 3.5.3 after 1st boot after new flashed SD

      Duet 3 expansion toolboard 1LC- was stuck at 3.4.0 beta - for the obvious reasons

      tried M997 S3 B121 - first error was the SAM2C.bin file not present. Went to bootloader latest releases and DL'd to pc then uploaded to the FW Director via DWC [ Duet3Bootloader-SAMC21.bin ] dwc shows date of 9/19/2024. it is 11/10/24 today

      Not sure what to do from here - where to find the right file[s] to get the toolhead 1LC up to date ...

      droftartsundefined 1 Reply Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @SputnikOC3d
        last edited by

        @SputnikOC3d M997 S3 ... updates the bootloader, not the firmware. Use M997 B121 for updating firmware (S0 is the default). Send M122 B121 to see the version of firmware and bootloader that is installed.
        I'm not sure why bootloader update is failing, @chrishamm can you take a look?

        Ian

        Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

        SputnikOC3dundefined 1 Reply Last reply Reply Quote 0
        • SputnikOC3dundefined
          SputnikOC3d @droftarts
          last edited by

          @droftarts - wow !!! That did it ... Thank you.

          I must be super daft ... cuz I really never saw this as a 2 step process in the docs.

          1. Update the bootloader with M997 S3 B121
          2. Update the firmware with just M997 B121

          Seems this stage is fixed

          M122 B121
          Diagnostics for board 121:
          Duet TOOL1LC rev 1.1 or later firmware version 3.5.3 (2024-09-17 14:35:31)
          Bootloader ID: SAMC21 bootloader version 2.11 (2024-08-09)
          All averaging filters OK

          The above clarifications and facts should be entered into the docs for future for others ?

          Link to the docs

          droftartsundefined 1 Reply Last reply Reply Quote 1
          • droftartsundefined
            droftarts administrators @SputnikOC3d
            last edited by

            @SputnikOC3d a description of the S parameter, including that S0 is for updating the firmware, while S3 is for uploading the bootloader. I’ll add a link to the bootloader updating page: https://docs.duet3d.com/en/User_manual/RepRapFirmware/Updating_bootloader

            Updating the bootloader isn’t necessary 99% of the time, and using the version the board shipped with should be fine. It is updated very infrequently, and usually just to support new boards.

            Ian

            Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

            SputnikOC3dundefined 2 Replies Last reply Reply Quote 0
            • SputnikOC3dundefined
              SputnikOC3d @droftarts
              last edited by

              @droftarts - thank you.

              For whatever reason the needed file was missing ... [ Duet3Bootloader-SAMC21.bin ]

              After I found the missing file and uploaded it via DWC, and tried to update the firmware using various variants of the M997 command.

              Its confusing [ to me anyways ] because .. you update the main board by the "S" parameter and several other things with it [ per the docs ] - seemed logical that M997 S3 was going to try and update the FW ... not JUST the bootloader and that unlike the main board the CAN bus attached toolheads etc do not require the "S" parameter to be used to update the firmware.

              Hopefully Im making sense at describing what doesnt make sense in the docs. Also curious why that particular file was absent on a new fresh SD card flash.

              1 Reply Last reply Reply Quote 0
              • SputnikOC3dundefined
                SputnikOC3d @droftarts
                last edited by SputnikOC3d

                @droftarts - PS - can mark this SOLVED too

                Answer was to use syntax M997 B121 [ where 121 represents your expansion boards CAN ID ]

                droftartsundefined 1 Reply Last reply Reply Quote 0
                • droftartsundefined
                  droftarts administrators @SputnikOC3d
                  last edited by

                  @SputnikOC3d I've updated the M997 Gcode entry with more examples, and made the notes a bit clearer: https://docs.duet3d.com/en/User_manual/Reference/Gcodes#m997-perform-in-application-firmware-update

                  @SputnikOC3d said in 1LC Toolboard FW mismatch - M997 fails to update D3 Mini+SBC pi4:

                  I must be super daft ... cuz I really never saw this as a 2 step process in the docs.

                  It isn't a two stage process, because you rarely, if ever, need to update the bootloader. So all you needed was M997 B121 to update the firmware. And usually this is done automatically for you.

                  Ian

                  Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                  1 Reply Last reply Reply Quote 0
                  • droftartsundefined droftarts marked this topic as a question
                  • droftartsundefined droftarts has marked this topic as solved
                  • First post
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA