duet 3 mini 5+ in USB bootloader mode
-
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.
-
-
@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
-
@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
- Basically, anything that erases or corrupts the firmware. You can send
-
This post is deleted! -
@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
-
@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
-
@droftarts thank you.
-
@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
-
@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