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

    duet 3 mini 5+ in USB bootloader mode

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    10
    302
    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.
    • apakundefined
      apak
      last edited by apak

      Hi, A client just called me, that his printer with duet3 mini 5+ board wasn´t working.

      PannelDue said "Connecting", so I asumed it had a bad SD or something.

      I got there, open electronics box, and checked led status.

      STATUS led was red and dim back and forth, so I googled it, and saw it had to be something related to USB bootloader mode

      They said they didn´t touched the reset botton, and the electronics box is not easy to open and handle, it´s a custom big foot printer, and everything is away from user´s reach.

      So I just plug the usb cable to my computer and the board just apeared and USB STORAGE DEVICE.

      Copied the firmware uf2 file, and it reseted as it should and everything y back to normal.

      Now the question......

      How could the board reset itself in USB Bootloader Mode? They say they just shut it down and allways do last time they used it.

      apakundefined 1 Reply Last reply Reply Quote 0
      • apakundefined
        apak @apak
        last edited by

        @apak @dc42 Is it anyway possible to get a duet3 mini5+ board onto USB bootloader mode rather that the 2 quick reset bottons?

        What happens if I am up and running ok, and press twice the reset botton? Will the board still run ok until power cycle?

        droftartsundefined apakundefined 3 Replies Last reply Reply Quote 0
        • droftartsundefined
          droftarts administrators @apak
          last edited by

          @apak No, as soon as you double tap the reset button it goes into USB bootloader mode. I don't know of any other way to get into the bootloader mode, or if it defaults to it if the firmware is erased, eg by a electrical discharge erasing the flash memory. Also, if you press the reset button again (once) and there is still firmware on the board, the board will restart correctly - I've just tested that. Unfortunately you already uploaded new firmware, so it won't be clear if the firmware was still there and working, just that it had been put into USB mode. Do you remember if there were any files on the 'DuetBOOT' volume when you plugged it in?

          I'll ask if the rest of the team have any theories.

          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

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

            @apak Thanks to @chrishamm and @dc42, we think there are a couple of other ways that the Mini 5+ can enter USB mode automatically.

            • Basically, anything that erases or corrupts the firmware. You can send M999 P"ERASE" to erase the firmware, and the board will enter USB mode on reset. This is because if the bootloader detects that the start address in the firmware image is outside the range of flash memory (as it will be if the firmware has been erased), it will remain in the bootloader. This helps if firmware programming fails, or if something else has caused the firmware to be deleted or corrupted.
            • The other possibility is if you cut power to the board twice successively in very short intervals. The bootloader checks for Power On Reset and if the RAM remains in tact during the power loss, that might be enough to trigger USB mode. Although it would be hard to get the timing right unless something messes with the 3.3V rail, but this might indicate a fault in the PSU or power delivery.

            I think knowing if a further reset restarts the board correctly (indicating the firmware is intact and that it is possibly a power issue), or if the firmware has been erased (indicating that something has caused it to be erased), is the troubleshooting step you can do if this happens again.

            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
            • apakundefined
              apak @apak
              last edited by apak

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • apakundefined
                apak @droftarts
                last edited by apak

                @droftarts said in duet 3 mini 5+ in USB bootloader mode:

                Do you remember if there were any files on the 'DuetBOOT' volume when you plugged it in?

                I'll ask if the rest of the team have any theories.

                Ian

                Yes, regular files, the three file that show in the wiki.

                Does it stay on booloader mode after turning off and back on the board? My case, even turning off and on the printer, still was on bootloader mode.

                they confirmed me today after turning off and on at night It´s working fine...

                It´s goog to know, that if you pressed twice to go to bootloader mode, you can go back to regular mode if pressed once again. It could be also added to the wiki, because I don´t recall reading that part

                droftartsundefined 2 Replies Last reply Reply Quote 0
                • droftartsundefined
                  droftarts administrators @apak
                  last edited by

                  @apak said in duet 3 mini 5+ in USB bootloader mode:

                  It´s good to know, that if you pressed twice to go to bootloader mode, you can go back to regular mode if pressed once again. It could be also added to the wiki, because I don´t recall reading that part

                  Thanks, good point. I've added an extra step in the firmware update notes here: https://docs.duet3d.com/en/User_manual/RepRapFirmware/Updating_firmware#duet-3-mini-5-wifiethernet

                  If you don't want to update the firmware at this time, you can press reset once or cycle power to reboot the Duet with the existing firmware.

                  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

                  apakundefined 1 Reply Last reply Reply Quote 0
                  • apakundefined
                    apak @droftarts
                    last edited by

                    @droftarts thank you.

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

                      @apak said in duet 3 mini 5+ in USB bootloader mode:

                      Does it stay on booloader mode after turning off and back on the board? My case, even turning off and on the printer, still was on bootloader mode.
                      they confirmed me today after turning off and on at night It´s working fine...

                      It sounds like something managed to corrupt or erase the firmware. I would tend to think some kind of electrical discharge, like static or a grounding issue, but possibly a PSU problem. Are the hot end metal parts grounded?

                      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

                      apakundefined 1 Reply Last reply Reply Quote 0
                      • apakundefined
                        apak @droftarts
                        last edited by

                        @droftarts I agree. It´s a cnc machines workshop and could have electrical peaks and noise....I,s been working almost 2 years and It´s the only issue due to electronics

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